MODULE-5 FILE & Their Organization
MODULE-5 FILE & Their Organization
Data Hierarchy
Def: Data is a representation of facts or concepts in an
organized manner. The systematic organization of data
refers to data hierarchy.
Data hierarchy involves various data items such as:
➢Field/ Attributes: A data filed is an elementary unit
of information that stores a single fact or an attribute.
Ex: Name of student, usn, phn num etc..
➢Record: A record is collection of related data fields.
Ex: a student record containing various data fields.
File and their Organization
➢Data Hierarchy
➢File Attributes
➢Text Files and Binary Files
➢Basic File Operations
➢File Organizations and Indexing
➢File: A file is a collection of related records.
Ex: file for each student consisting of stu’d academic
record, personal record hostel record etc..
Disadvantages
▪ Records should be of fixed length only
▪ The relative position of the record must be known before processing.
Indexed sequential file organization
It uses the concept of both sequential as well as
relative files.
Advantages
▪ Searching an element is easy
▪ Records can accessed sequentially and randomly
Disadvantage
▪ They can be stored only on disks
▪ Its requires extra storage space for storing indices
▪ Support only fixed length records