Hey there C++ codies, I need some help again. I'm supposed to open a file that is provided by the user. Its supposed to be allowed to take a space if the user enters it, and I thought I solved it, but when i type check book.txt i get my error message prompt.
I can't seem to figure it out to save my life. So here's my code:
1 2 3 4 5 6 7 8 9 10 11 12 13
cout << "Enter a file name (including extension): " << endl;
cerr << "Unable to open file" << endl;
It compiles fine, and I don't get any error messages. Thoughts?