IB Computer Science/Program Construction in Java
- FILE ORGANIZATION
- Definition
File organization is the logical arrangement of records in a file
A File is an electronic document stored in an electronic storage medium such as disk or tape. It consists of a collection of records
Accessing a file means reading records from disk or tape
- Types of File Organization
1. Serial 2. Sequential 3. Direct
Serial (unsorted) Organization
A serial file, sometimes referred to as unsorted or unordered file, is the simplest type of File Organization. Records in serial file are generally organized on rape un no particular order.
Advantages of serial file
- It has fast insert operation
- It is good for small relations
Disadvantages of serial file
- Deleted records often leave space in the file which requires time to eliminate
- Not good for volatile tables