I am attempting to use a variable filename, to load a file. All of these files are stored in the same subdir to my program. I'm doing this like so:
int fileNum = whatever;
string fName;
stringstream ss;
ss << "Files\\Foo" << fileNum << ".csv";
fName = ss.str();
fstream foo (fName.c_str());
The problem I'm having is that the compiler refuses to replace "\\" with '\'. Using '\' produces a compiler error, of course, but when I debug, watches shows that fName gets a value of "Files\\Foo1.csv", which of course won't open anything.