October 2025
Intermediate to advanced
1048 pages
29h 35m
English
In the preceding chapter, we learned the fundamental concepts of file I/O as well as how to use the basic system calls related to it. Here, we’ll add a few more advanced tools to our repertoire so we can create more sophisticated programs. First, we’ll consider ways to control the position of the file offset, which is the component of an open file description that stores the position of the next byte to read or write in a file. Being able to control the file offset will give us the means to solve problems we currently can’t solve that require reading from nonconsecutive parts of files. We’ll apply this new knowledge ...
Read now
Unlock full access