Your problem is here:
lineData.name = 1;
lineData.grade = 2;
I should note that the symbols you're getting are ASCII 1 (ie, exactly what you're setting lineData.name to).
while( getline(myFile, line) )
You need to take the line and parse it, inserting a proper string into lineData.name, and inserting an integer into lineData.grade.