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::out | ios::binary);
x.a = 2;
cout<<"Enter name ";
Re: Problem about file handling!!!
file.open("text.dat", ios:app | ios::binary);