fayevalentine
Programmer
Hi!
I have a little problem, I am writing to a file with this code:
ofstream outfile("c:\\salida.dat");
outfile<<1<<" "<<2<<" "<<3<<" "<<4<<"\n"<<5<<" "<<6<<" "<<7<<" "<<8;
outfile.close();
but when a write a new data all existing data are erased.
What can I do to append my new data?
Thank you.
I have a little problem, I am writing to a file with this code:
ofstream outfile("c:\\salida.dat");
outfile<<1<<" "<<2<<" "<<3<<" "<<4<<"\n"<<5<<" "<<6<<" "<<7<<" "<<8;
outfile.close();
but when a write a new data all existing data are erased.
What can I do to append my new data?
Thank you.