How can I figure out the size of a file, in bytes?
#include unsigned int fsize(char* file){ //what goes here? }
I have a function that works well with only stdio.h. I like it a lot and it works very well and is pretty concise:
stdio.h
size_t fsize(FILE *File) { size_t FSZ; fseek(File, 0, 2); FSZ = ftell(File); rewind(File); return FSZ; }