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.
Ex)
Folder1 with program and Folder2
Folder2 within Folder1 where i want the program to output to.
currently my syntax is:
Code:
FileName = "\\Profiles" += "\\" += NewPlayerName += ".html";
ofstream Playername( FileName.c_str() );
I've also tried:
Code:
"\Profiles\" += NewPlayerName += ".html";
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.