Reading text from file

I have text in the following format that I need to read to a parallel array:

John Doe
Jane Doe

I just need to know how to read in a string and then stop the pointer at whitespace, and how once at the end of the line, to jump to the next line.

Any help would be greatly appreciated!
Yea I got it to work not five minutes after my post, stupid little mistake I had. Thanks!
You will need to use std::cin.ignore() once you reach the end of the line to ignore the '\n' character.
Topic archived. No new replies allowed.