Should
andCode:ofstream s(name.c_str());
give the same results?Code:ifstream s(name.c_str(), ios_base::out);
Printable View
Should
andCode:ofstream s(name.c_str());
give the same results?Code:ifstream s(name.c_str(), ios_base::out);
did you mean
in the second line code?Code:fstream s(name.c_str(), ios_base::out);