Hi everyone.

I am using code like this:

while(!ifs.eof())
cout << hex << ifs.get() << '\n';

The file that I am using has exactly 283,858 bytes (i.e. it is fairly large); however, the thing thinks the last character is character #21,018, because that's when ifs.eof() returns true. Can anyone help me out here? Can anyone tell me to make it _know_ that the last character is at character #283,857? Thanks.