creating an .exe file

Hello,
I would like to convert my MSVC++ 2010 .cpp file to .exe file.
It works fine for a simple program but not for ones that required to read/write text files.
I get the following error if i click the .exe file in the Debug folder that handles text files:
Debug Assertion failed!
Expresssion:(stream!=NULL)

Any help would be greatly appreciable!!

Thanks
You're trying to use an object that hasn't been properly initialised.

Since you also seem incapable of asking questions correctly, please read http://www.cplusplus.com/forum/articles/1295/
Topic archived. No new replies allowed.