You can't read past the end-of-file position. This error has the following cause and solution:
Use the EOF function immediately before the Input # statement to detect the end of file.
EOF only works with files opened for sequential Input access. Use Seek and Loc with files opened for Binary access.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).