figure out filesize

Started by
0 comments, last by Funkodysse 21 years ago
hello. im using the "fread" thing how do i determining the filesize of a file.
Advertisement
FILE *f;

...

fseek(f, 0, SEEK_END);

long size = ftell(f);

size is the size in bytes of the file.


Qui fut tout, et qui ne fut rien
Invader''s Realm

This topic is closed to new replies.

Advertisement