I am attempting to read a filename from the user and then open the file, however,
if I press enter instead of typing a filename I get an error from the compiler:
#######################
Debug Assertion Failed!
...
Expression: *file != _T('\0')
...
#######################
It works unless the user presses enter without typing a filename, here is the code:
string filename;
getline (cin, filename);
ifstream fin(filename.c_str());
Visual C++.NET
Windows XP
THANKS!