December 2011
Intermediate to advanced
297 pages
7h 22m
English
![]()
In previous chapters we have explored files sequentially. Files that can be explored sequentially are known as sequential files. In this chapter you will see the advantages of using nonsequential (random) access to a file’s contents. Files that permit random access to their contents are known as random access files (RAFs). Sequential files are used more often because they are easy to create, but RAFs are more flexible and their data can be located faster.
With a RAF, you can open the file, seek a particular location, and read from or write to that file. After you open a RAF, you can read from it or write ...
Read now
Unlock full access