?IE ERROR

Radio Shack TRS-80 Color Computer

Severity: Minor

What it means

IE stands for Input past end of file.
Tandy's Getting Started With Color BASIC manual says to use EOF to check when you've reached the end of the file, and to close the file when you have.
Its tape example warns that the EOF check must come before the INPUT #-1 line; if it comes after, you get an IE error.

Affected Models

  • Radio Shack TRS-80 Color Computers running Color BASIC

How to Fix It

  1. Put an EOF check on the line just before the one that reads from the file.

    Tandy's example uses 85 IF EOF(-1) THEN 120 right before the INPUT #-1 line, with 120 CLOSE #-1 at the end.

  2. When the check finds the end of the file, send the program to a CLOSE line.