For some reason i am only able to read the first line of the text file and not any of the lines below. I need to figure out how to read the first 9 characters of each line and compare them to the users input. Then carry over the rest of that line. but cant figure out where I'm going wrong.
For example, the user enters "123456789" for their ID, and Kim Murphy's information is then read. Upon the first iteration of getline, "ITCS2530" is read and put into the variable, and is then loaded into the struct; no problem there. However, the last course in the list has the newline character before the next comma, so the next iteration reads "MATH101/nl213456789" and puts the entire string into the variable and tries to load that into the struct.
I think i am severely over complicating this ,but i just frustrated and confused at this point.