C file input/output: Difference between revisions

Content deleted Content added
No edit summary
Line 46:
fseek(f, 0L, SEEK_END);
length = ftell(f);
rewind(f); /* Return to the beginning of the file for future useage */
 
fclose(f);
printf("%ld\n", length);