//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