The problem is that if you don't want to read the whole file in one go, you need the FILE pointer to be moved from the start of the file to where you finished the last read.
Use fread(), it moves the pointer automatically, and allows you to read any number of numbers in each call. I think binary mode will be better than text.
http://msdn.microsoft.com/en-us/library/kt0etdcs.aspx
Quote:
The file pointer associated with stream (if there is one) is increased by the number of bytes actually read.
|