06-24-2010, 09:14 PM
I made a program that uses <fstream> to open a text file, via
It works just fine with a small file of ~3MB, but the file I NEED it to work on is 68MB, and whenever I try to run my program I get this:
Then Windows pops up a message saying the the application crashed.
FYI: Using GCC on Windows Vista, no IDE. Compiling with g++ -o appName app.cpp.
Also, would this work on some sort of *nix?
Code:
if (file.is_open()) . . .
It works just fine with a small file of ~3MB, but the file I NEED it to work on is 68MB, and whenever I try to run my program I get this:
Code:
This application has requested the Runtime to terminate in an unusual way. Please contact the application's support team for more information.
Then Windows pops up a message saying the the application crashed.
FYI: Using GCC on Windows Vista, no IDE. Compiling with g++ -o appName app.cpp.
Also, would this work on some sort of *nix?