...

/

Random Access

Random Access

Learn how to jump to a different location when reading or writing to a file.

We'll cover the following...

The need to move around

Sometimes when reading from or writing to file, we may want to jump to a different location in the file and start reading or writing from there. The fseek function lets us do exactly that. We can give the number of bytes after which the read or write is ...