How many times are you trying to read data from the file?

Only once.

You need to fscanf() inside the loop, as well as the initial fscanf() outside the loop (which you have in place).

If you...