May 16th, 2013, 01: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 ";
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.