Don't Erase Contents of Text File
Please support our C++ advertiser: Programming Forums
Thread Solved
![]() |
cplusplus Syntax (Toggle Plain Text)
ofstream myfile("example.txt", std::ios::app);

app stands for append btw
Chris
Knowledge is power -- But experience is everything
![]() |
Similar Threads
Other Threads in the C++ Forum
- Reading in new line character from a file. (C++)
- C++ Extracting data from text files (C++)
- Program Compiles, and excecutes but crashes when run. (C++)
- Why does vector get out of range? (C++)
- project plz who can help me (C++)
- write and delete details on csv file in C++ (C++)
- who can help me in c++ project (C++)
- Reading CSV in VC++ (C++)
- problem with svchost.exe (Windows NT / 2000 / XP / 2003)
Other Threads in the C++ Forum
- Previous Thread: STL list question
- Next Thread: Cant solve what is wrong
•
•
•
•
Views: 372 | Replies: 3 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode