At the university, the professor teaching us Fortran, gave us the following code:
program example
integer year, month, day, inst, kind, ozone
real time
open(unit=1,file='C:\261.dat')
read(1,1000) year, month, day, inst, kind, ozone, time
close(1)
1000 format(i4,1x,i2,1x,i2,1x,i1,1x,i1,1x,i3,1x,f8.3)
end
In this code, the line indexed with 1000 specifies the particular input format. Isn't it something like a GOTO logic? And if yes, what's the most appropriate way to avoid it, in the context of Fortran?