sorry to ask such an inane question but i've left my fortran book back at home...
I'd like to
DO i=1,2000
READ(file1) x,y
WRITE(file2) blah,x,blah,y
IF (EOF) THEN
EXIT
END IF
END DO
But I can't figure out how to recognize the end of the file. using IOSTAT shows me 0's all the way until I get the library error.
Thanks in advance for any help!
I'd like to
DO i=1,2000
READ(file1) x,y
WRITE(file2) blah,x,blah,y
IF (EOF) THEN
EXIT
END IF
END DO
But I can't figure out how to recognize the end of the file. using IOSTAT shows me 0's all the way until I get the library error.
Thanks in advance for any help!