I tried searching through old posts with not alot of luck how do i write to the end of a file using std::ofstream file1("data.dat"); so if i wrote 2 times it wouldnt overwrite the first 1
Printable View
I tried searching through old posts with not alot of luck how do i write to the end of a file using std::ofstream file1("data.dat"); so if i wrote 2 times it wouldnt overwrite the first 1
You can open it with append mode if that's what you want.
http://www.cppreference.com/cppio_details.html#open
look up ios::app in your helpfiles or favorite textbook