Reading from a file into structure array

This is a sample that will be written together in programming 2 in the class dedicated to structures.

Data file format isĀ  <name> <grade> , where the name can consist from up to 63 characters and be a single word. Grade must be an integer. Data fields are separated by spaces.

Notice, that there is no guards for buffer overflow – if you enter 64 or more characters for the name, it will write beyond the bounds of the array and can cause data corruption or the program crashing.