Don't know the answer to your question until I know the contents of the text file. Without that knowledge, generally I would use fgets() to read a line, then parse it into its individual parts into the structure.
I told Santa what I wanted for Christmas and he washed my mouth out with soap.