Help with fread

Hi,
I have a code that reads a binary file with fread. Because of the size of the file I need to save the results of the calculations say every 1Gb of read data. The two things I can't quite figure out are:

- How to tell the program that it is time to save the results (now I am saving after eof)
- How to save the pointer so that I can continue at the same spot.

If it is of any use, I am programming under linux. I would be grateful for any input :)
Topic archived. No new replies allowed.