FILE* fp = fopen("text.txt", "rt");

if(fp == NULL){

    exit(-1);

}

fseek(fp, 0L, SEEK_END);

unsigned file_size = ftell(fp);

fseek(fp, 0L, SEEK_SET);

+ Recent posts