I'm trying to have the output of a program go to a folder other than the one where the program is running from, but a subfolder of the folder its in.
Folder1 with program and Folder2
Folder2 within Folder1 where i want the program to output to.
currently my syntax is:
I've also tried:
FileName = "\\Profiles" += "\\" += NewPlayerName += ".html";
ofstream Playername( FileName.c_str() );
In all these attempts I think the compiler (Dev-C++) is misinterpreting the "\"s, not to say this is compiler specefic, I think I just don't know the proper syntax for this sort of command.
"\Profiles\" += NewPlayerName += ".html";