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
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
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
look up ios::app in your helpfiles or favorite textbook
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi