|
-
January 2nd, 2002, 03:46 PM
#1
ifstream problems with large files
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
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|