Reading from a .txt file

If I am reading data from a .txt file with a person's last name and first name (e.g. Miller Andrew), How do I output the same data with the first name followed by the last ?(e.g. Andrew Miller) Do I use the ignore function?
1
2
3
4
5
string first_name,last_name;
file >>last_name>>first_name;

cout <<first_name<<" "<<last_name;
Lmao! Wow. I was just over thinking it. That was so simple. Thank you for your help!
Topic archived. No new replies allowed.