Filling Array Of Structures From A File
I'm having a hard time discovering how to fill an array of structures from a file. This is what I'm trying to do.
I am going to open a file from the command line. In the file are a bunch of records some of them in the proper format and some not. Each of the records are on one line of the file, like this.
Sumpter, David: 12445: 100: 85: 70: 78: B+
Laporte, Leo: 23855: 88:88: 100: 76: B
...and so on
Any ideas how I can get this type of data into an array of structures dynamically?
I don't need to handle all the records in the file just the first 100 valid records.