So I was thinking to read the title line for the lecture, then skip whitespace and use peek() to look at the first character of the next line. If it's a '-' then it's a lecture for the current course.
Im new to this struct and file parsing so needed help and guidance.
Is your input really such a sloppy mess? There is no consistency of formatting for each class entry as to scheduling. And your flagging of the schedules isn't the same with each entry.