hi,
I am not able to open ofstream exisiting files.Though it can create new files.Here's my code
Code:void source_station::save_station(char* source) { ofstream station; station.open(source,ios::app|ios::noreplace|ios::binary); if(!station) cout<<"Could not open file"; else station.write((char*)this,sizeof(*this)); station.close(); }