I am reading in a big file (60MB) 5k at a time, which I find is a lot faster than byte-by-byte. The problem is, if the file does not divide exactly by 5k (which it clearly very rarely will), then I miss out on the last bytes of the file, i.e. when my program tries to pick up 5k but cannot get it. I tried to add a bit at the end which will pick up the last of the file byte-by-byte, which as it is less than 5k, is very fast, but the file pointer seems to have run past the end of the file, so I cannot get the rest of the data, so two questions, how can I rewind() the pointer, not to the start of the file, but to a given position (in bytes), and also how can I find out where the pointer is?
Thanks a lot.
Garry
Thanks a lot.
Garry