Hello,
I am currently writing a program that requires the user to enter the file name for the .txt file. I'm sure I'm just missing something simple. Below is the code.
1 2 3 4 5 6 7 8 9 10 11 12
cout << "Please enter file name: ";
cin >> textName;
textName += ".txt";
// opening txt file.
fin.open(textName);
// reads in data from file
getline(fin,file);