Input past end of file

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Either an Input statement is reading from a file that is empty or one in which all the data is used, or you used the EOF function with a file opened for binary access.

To correct this error

  1. Use the EOF function immediately before the Input statement to detect the end of the file.

  2. If the file is opened for binary access, use Seek and Loc.

Input
EOF
Seek
Loc

Show: