Check whether file exists and exceeds a certain size
I am familiar with checking whether a file exists or not...
int File_Exist(string s)
int x = 1;
if (file.fail()) x = 0;
else file.close(); file.clear();
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?