May 16th, 2013, 12:09 AM
Problem about file handling!!!
Every time I write in file using ofstream it works fine except for one thing that when the file is re-opened after writing something and we try to add more data then previously added data is removed how to get rid of this.
file.open("text.dat", ios:ut | ios::binary);
x.a = 2;
cout<<"Enter name ";
May 16th, 2013, 01:04 AM
Re: Problem about file handling!!!
file.open("text.dat", ios:app | ios::binary);
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!