A.Hill D.Lee W.Ang K.Ree
E.Alexander B.Harvard A.Ericson
I'm trying to get the above lines from the file. I want to read the student names of each line with one variable. I want to return the variable each time with the next student name. Here's what i have so far...but this only gives the first name and it loops infinitely.
while (sscanf (stdntName, "%20s", stdnt))
{
printf("%s\n", stdnt);
}



LinkBack URL
About LinkBacks


