The arguments for the ofstream() constructor was changed, since the C++98 does not accept a const string type.