I am very new to c++ and need some help with fstream.h
Could someone please tell me how to ask the user for a name and make that the name of a .txt please? I imagine it would be something like this...
int num;
cin>>num;
ofstream a_file(num, ".txt");
etc...
If someone could help with this, or direct me to a advanced tutorial, it would be most appreciated.