Hi guys,
I am familiar with checking whether a file exists or not...
Something like:
However,Code:int File_Exist(string s) { ifstream file; int x = 1; file.open(s,ios::in|ios::binary); if (file.fail()) x = 0; else file.close(); file.clear(); return(x); }
Once establishing a file exists I want to check whether it exceeds a certain size... or rather that is contains some data.
That's basically it. If it contains any data then I do one things. If it contains nothing then I do another.
What do you think? Any suggestions?
cheers