How can I figure out the size of a file, in bytes?
#include unsigned int fsize(char* file){ //what goes here? }
You can open the file, go to 0 offset relative from the bottom of the file with
#define SEEKBOTTOM 2 fseek(handle, 0, SEEKBOTTOM)
the value returned from fseek is the size of the file.
I didn't code in C for a long time, but I think it should work.