I have an integer variable NUM_PTS. I want to read 'NUM_PTS' instances of another variable from a text file (all on the same line) using a format statement. I thought this was achieved by:
DO I = 1, NUM_PTS READ(10,120) INP_VAR(I) ENDDO 120 FORMAT (<NUM_PTS>(I3,2X))
But this does not seem to work. Any ideas how I can achieve this?