i hav a homework form univ. that is use file IO.
there is like this TXT file:
Brian s213551 50 70 70 50 Alex Fernandes s210011 70 81 50 89 Young Lee
Just add a space in the end of fscanf() parameter to consume the newline character.
fscanf()
fscanf(f, "%s %d %d %d %d ", member[i].id, &member[i].score[0], &member[i].score[1], &member[i].score[2], &member[i].score[3]);