im attempting to get a file's size, with not alot of help. any one know of site with some good info, like cplusplus.com's style.
heres what i was trying.
i created a txt file and ran this, then i copied and pasted some text into the file and the size didnt change.Code:extern int getfilesize(char *src) { struct stat filesize; stat(src, &filesize); return (filesize.st_size); }