Well if you want to strict fstream and such, you can like;
Code:
ifstream filehandle("your text files", ios::in | ios::binary |ios::ate);
size = filehandle.tellg();
Then test size-1 against 0. And I'm sure you could read() or get() from the stream and test for an immediate EOF and get the same effect. According to MSDN we and the CRT have ourselves a filelength function defined in io.h, dunno, and can be read about here: http://msdn.microsoft.com/library/de...elengthi64.asp and then of course if we are limiting ourselves to windows you can use the GetFileSize[Ex] function.