|
|
|
get file size in C
2
This simple function utility is used to find file size in bytes
//get file size
#include<stdio.h>
int getFileSize(FILE *input)
{
int fileSizeBytes;
fseek(input, 0, SEEK_END);
fileSizeBytes = ftell(input);
fseek(input, 0, SEEK_SET);
return fileSizeBytes;
}
//This utility is used to get filesize in bytes




There are currently no comments for this snippet.