I want to overload operator << to serialize an object to a file (append). Which stream should I use? ofstream or fstream? what is the difference?
std::ofstream& operator<<(std::ofstream& ofs, const MyData&); std::fstream& operator<<(std::fstream& fs, const MyData&)
Thanks Jack