Hello!

I know that this question was asked earlier in the forum, however my problem is a little bit different from what have been discussed.
I have an input file from wich I am reading values.
There are three different values in the line and multiple lines.
The first value - title is of the string type (not char!!!)
If the title consist of one word everything is read correctly, however if title is of two words or more getline() reads only the first word and considers the black space after as the end of the file. Therefore when the count should be for example 2:

Larry 10 1
Amy Read 12 5
it counts only first record.
can someone explain to me how to work with strings that have multiple words and read from the file.
Thanks much.