![]() |
| ||
| Don't Erase Contents of Text File Hi, It's me again with another silly question:) I was wondering if there was a way using ofstream to not erase the contents of the file it is writing to and simply write at the end. Thanks! P.S. I'm using windows XP and Dev C++ |
| ||
| Re: Don't Erase Contents of Text File ofstream myfile("example.txt", std::ios::app);Hope that helps :Papp stands for append btw Chris |
| ||
| Re: Don't Erase Contents of Text File Thanks |
| ||
| Re: Don't Erase Contents of Text File Your Welcome, Go ahead and mark this as solved. Chris |
| All times are GMT -4. The time now is 8:40 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC