If I had it my way I would use strings and vectors! However, this is an assignment and I must learn how to do this with character arrays. It's kind of pointless but nevertheless I must figure out a way to do this.
This is because the character array is limited to 15 characters. So if specify to ignore the next 15 characters and or until a newline escape sequence is encountered, each line of the file is read properly.
Well: When reading the data and you read the name you allways read 15 characters, the 3rd name has 10 characters (including the whitespace) so you accidently also read the integer after it.
The result is that the rest of the protocoll is broken.
I wonder why the first name does not break the protocoll...
Edit: Nice, good job! :D
Edit2: It still does not work here ._.