?FILE OPEN ERROR

Commodore Commodore 64

Severity: Minor

What it means

OPEN was given the number of a file that is already open.
Commodore's manual puts it as an attempt to open a file using the number of an already open file.
The file number is the first number after OPEN. In OPEN 1,8,2,"DATA" it is 1.

Affected Models

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

How to Fix It

  1. CLOSE the file before opening that number again, or use a different number in the new OPEN.

    For example, CLOSE 1 before the next OPEN 1.

  2. Check the program for an OPEN that runs twice, for example inside a loop, with no CLOSE in between.