Monday, January 16, 2012

How to read n bytes using fseek?

You're having fread put each block read from the file at &buffer[0]. In the while loop you should be calling fread with a pointer to a location in buffer that moves along as you read, so buffer gets filled with the contents of the file.

0 comments:

Post a Comment