123456789101112
int main(){ SetConsoleTitle("Save Generator"); cout<<"Enter the path.\n\n Example:\nC:/Users/USER/Documents/savegames/Profile"<<endl; cin>>path; mkdir(path); ofstream text; cout<<"Writing files to the directory given\n\t\tPlease Wait..."<<endl; text.open("checkpoint.sav"); text<<"2,0,0\n0,x,y\n0,0,0"; text.close(); return 0; }
123
string c2 = "checkpoint.sav"; text.open(path, c2);
text.open((path + c2).c_str());
text.open(path + c2);