Hey guys, I'm stuck on an assignment for school, was wondering if you could help me out. So I have a text file similar to this:
Joe Jim Hello Jim, Just wanted to say hello! -Jim EOF
This is supposed to be like a message system. The first line is the name of the sender, second line is name of the recipient, 3rd line is the subject, and all lines after that until it says EOF are part of the message body. So I know I can use getline to get the first 3 into separate variables, but the message body is in multiple lines and needs to be in one variable. I was wondering how I can do that, since getline can't get multiple lines...