let say I got input.txt with following thing
Kelly // name of student
67 // Biology Score
89 // Chemistry score
and I use this fscanf command to scanf all the file until EOF:
while ((fscanf (input, "%s %d %d", &studName, &bioScore, &cheScore) ) != EOF)
because the command seem quite long, is there other method to do this without using the feof function? it should be like this:
fscanf ("%s", &studName);
fscanf ("%d", &bioScore);
fscanf ("%d", &cheScore);
is there any other method that look like above (use 3 fscanf), to scan and read all the input from a file? because it look neat and tidy.
thank in advance..