Fortran files in Microsoft Visual Studio
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.