Please enable JavaScript.
Coggle requires JavaScript to display documents.
Chapter 10: File-System - Coggle Diagram
Chapter 10: File-System
File Concept
-
Definitions
-
Field – Group of related bytes.
Record – Group of related fields.
File – Group of related records that is stored in secondary storage.
Databases – Groups of related files
Program files – Contain instructions.
Directories – Listings of filenames and their attributes.
File atrributes
- Name
- Identifier
- Type
- Location
- Size
- Protection
- Time, date, and user identification
File operations
- Create
- Write
- Read
- Reposition within file
- Delete
- Truncate
- Open(Fi)
- Close(Fi)
File structure
-
Simple structure
Formatted document, Relocatable load file
Complex structure
Lines, Fixed length, Variable length
File types (name, extension)
-
Access Methods
Sequential Access
- read_next() – reads the next portion of the file
and automatically advances a file pointer.
- write_next() – append to the end of the file and advances to the end of the newly written material (the new end of file).
- reset – back to the beginning of the file
-
-
-
-