Just a bit of possibly useful information...
If you open the file as a stream ( fopen() ), you have even more flexibility. You can get the current position within a file at any time with ftell(), and reset the current position to arbitrary values with fseek(). The arguments to fseek() allow you to specify a position relative to the beginning of the file, relative to the end of the file, or relative to the current position.
--- rod.
EDIT: Oops. I see you must already have opened the file with fopen().
Last edited by theNbomr; 12-16-2010 at 08:54 AM.
|