22 std::ostringstream id;
28 std::ostringstream localFileName;
29 std::string::size_type loc = fname.find(
'.');
31 if (loc == std::string::npos)
32 localFileName << fname <<
id.str();
34 localFileName << fname.substr(0, loc) <<
id.str() << fname.substr(loc);
36 newf = localFileName.str();
Declaration of methods to assist in file input/output.
void addNumberToFileName(int number, std::string fname, std::string &newf)
Helper method to add number to a file name.