[Dev-C++] program crash with ofstream
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Noorez K. <lor...@ho...> - 2005-07-18 23:18:10
|
When I use ofstream my program crashes. Hears what I do. As soon as I get the name of the file, I open the file like this: ofstream saveTextFile(currentFileName); Using the debugger, I checked the contents of currentFileName and it is a valid file name. It doesn't always crash. Only when I open the file multiple times. What could be the problem? _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. |