Basically just the title. I am trying to check wether or not a file is emtpy. The problem is, that this file will get absolutely massive (~1GB+) over the course of a few days, and i feel like
fseek(fp,0,SEEK_END);
if(ftell(fp)==0){//init file}
rewind(fp);
//actually read the file
Is time expensive, because you have to run through the entire file. I also dont want to use systemcalls, because I normally use Java, and try to work as platform independent as possible (i.e. not having to rewrite it for each platform, but just recompile it). If this is no cocern at all, and fseek()... can handle these filesizes easily, tell me, but i think this is timeconsuming.