Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

sizeof file c

FILE *fp = fopen("file.txt", "w+");
fseek(fp,0,SEEK_END);
int size = ftell(fp) + 1; // we have to account for the 0th position in the file
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sizeof #file
ADD COMMENT
Topic
Name
7+5 =