i am trying to create a program in which many different accounts are
to be created. I want each of the account's information to be stored
in a simple ".txt" file. is there anyway i can pass the contents of a
string (i.e two strings joined together e.g "account1" and ".txt") as
the name that is used when creating the file. i have previously used
ifstream/ofstream for creating a file, but with a given name set.
e.g
ofstream myfile;
myfile.open("account1.txt");
myfile << "hello";
myfile.close();