Using Dev-C++
Im a newbie to c++
Is it possible to save files using a variable as the filename.
What i want to do is setup a text based program like a mud and be able to go from room to room and have it display room discription and available exits.
Only way i can think to do this is have a file for each room and have the code open/read or write/close each time i enter a new room.
Problem is i cant work out how to set this up any help would be greatly appreciated.
I only need the syntax for opening a file with a variable