Reading input with whitespace
Hey there, I need help getting input from the user with whitespace. Basically I'm prompting the user for a file name, and i want it to read the input if they include a space.
Here's my code so far:
cout << "Enter a file name (including extension): " << endl;
cin >> FileName;
cerr << "Unable to open file" << endl;
i thought i could use skipws , but i don't know if im using it right.
Thank you toum, that helps :)
Topic archived. No new replies allowed.