i do create a menue function that should generate separate .txt files for users. commands like ofstream are fine but i have to predefine the filename. however, i would like to name the file according to the user entry...
void Cfile ()
cout << ("Please enter the Name of your library...");
getline (cin, fileName);
ofstream name (filename.txt); // ?? thats the problematic line...
name << "My first trial to save information \n";
guess its easy but somehow i am not able to find a solution. thanks for your help,