I've noticed a previous thread about the same assignment I'm doing, but I'm asking a different question.

Here is the bowling.dat file:
Homer Simpson
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 -1
Marge Simpson
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 -1
Lisa Simpson
4 6 3 7 2 8 1 9 3 7 3 7 2 8 1 9 0 10 9 0 -1
Bart Simpson
4 6 3 7 2 8 1 9 3 7 3 7 2 8 1 9 0 10 9 1 9 -1
Krusty the Clown
0 0 0 0 10 1 1 0 0 0 0 0 0 0 0 0 0 0 0 -1
Apu Nahasapeemapetilon
8 1 7 1 5 2 6 2 9 1 5 4 4 5 2 3 6 3 4 2 -1
Ned Flanders
10 5 5 6 0 10 0 2 0 1 4 5 4 6 7 3 10 10 10 -1
Barney Gumble
10 10 10 10 10 10 10 10 10 10 10 10 -1
Grampa Simpson
0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 0 1 0 1 -1
End of data


I'm not asking for the entire code, just come guidance. With the program I'm using (quincy), I've opened up the file, and now I have no idea how to read ONLY the name and how to stick it into a string. I've been told to create a function to read the names, but I'm completely clueless? Any advice?