Streams don't like it when you open them multiple times without calling the
.close() function!
HTH!
Matt
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Noorez
Kassam
Sent: Monday, July 18, 2005 4:18 PM
To: dev...@li...
Subject: [Dev-C++] program crash with ofstream
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(r)
SmartScreen Technology.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=htt
p://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN(r) Premium right now and get the
first two months FREE*.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|