View Single Post
jtbell
jtbell is offline
#4
Mar2-12, 10:36 AM
Mentor
jtbell's Avatar
P: 11,225

fortran files in Microsoft Visual Studio


The statement

READ (10, 50, END=200) X

says: "Try to read the variable X from unit 10 using format statement 50. If you hit the end of the file while trying to read X, jump to statement 200."

In order for this to work, of course, you have to put statement number 200 on the statement that you want to pick up execution from when you reach the end of the file.