Random-access to Files
Files are typically sequential data structures.
Most common access pattern:
- open at start of file
- read item-by-item until end of data, OR
- write items one after another
Two operations (fseek() and ftell() ) provide random access.
|