How to capture a newline?

Just as getline (cin, string x) captures the whole line instead of stopping at a newspace char (as cin >> does) how can I capture a newline character. If it helps I want to use fstream to read in more than one line at a time.

Thanks!
Topic archived. No new replies allowed.