?FILE NOT OPEN ERROR

Commodore Commodore 64

Severity: Minor

What it means

Commodore's manual: the file specified in a CLOSE, CMD, PRINT#, INPUT# or GET# must first be OPENed.

Affected Models

  • Commodore 64
  • Commodore 64C
  • Commodore 128 in C64 mode

How to Fix It

  1. Add an OPEN statement with the same file number before the line that uses it.

    PRINT#1 needs an OPEN 1,... earlier in the program.

  2. Check that the numbers match. OPEN 2 followed by PRINT#1 gives this error.