Hey all,
How does one append a new line to an existing text file?
The text file is basically a list
that gets items added to it on a regaular basis
Printable View
Hey all,
How does one append a new line to an existing text file?
The text file is basically a list
that gets items added to it on a regaular basis
ios::app
Code:ofstream file("somefile.txt", ios::app);
file << "Hello world";
file.close();
try searching teh boards: http://cboard.cprogramming.com/showt...143#post310143
BTW--Thanks for the code:
the ios::app worked!