Well, getline is normally the way to go if you want to grab a full line of text. Using the >> extraction operator can grab value by value, but keep in mind that the newline remains in the buffer, and doesn't get thrown out - so the next >> operation would get that instead of the next number.
i.e.
inputStream >> x; //Gets 4545
inputStream >>another; //Gets \n instead of a number.
Let me know if you need more help:
sparkprogrammer@gmail.com