I am writing an app to read from relatively large log files. Whenever I read from one that is 12MB in size I get an Unhandled Exception Error. If I use a the 2MB files that I have the program has no problem. From what it seems the problem is directly related to the STREAMB1.CPP file that the debugger is trying to load.

The call stack is as follows :
streambuf::stossc()
istream operator>>(char *)

Is there a max file size when using ifstream and the >> operator? The code I have reading the file is basically this


char finput[100];
CString input;
while (!inFile.eof())
{
inFile >> finput; // Dies on this line
input = finput;
// Do something with input
}