I am using fscanf to read in the date and then fgets to read the note. However after the first iteration, fscanf returns a value of -1.
I used GDB to debug the progr
Don't mix fscanf() and fgets(), since the former might leave stuff in the stream's buffer.
fscanf()
fgets()
For a line-oriented format, read only full lines using fgets(), then use e.g. sscanf() to parse what you've read.
sscanf()