Now I'm trying to write a save file, where part of the filename is a variable that you type in(your character's name), so each character generates its own unique save file. Here's what I have so far:
I need a way to add the value of input before the ".sav" in the filename, is there a simple way to do this?Code:cout<<"Who are you? "; cin>>input; ofstream a_file (".sav"); a_file<<"<Save game info for this character...>"; a_file.close();