I am using C.
Say I have a FILE datatype studentRecord in the following format " EntryIndex. lastname, firstname: score" for example "12. Simpson, Homer: 15". That is one record. Records are separated by space. Suppose the user enters number 12, how do I print out that exact record number 12? Logically I would think do somehing like
go through the file character by character, if find combination like "studentNumber + "."" print out characters starting from that point until a third space character.