?NOT OUTPUT FILE ERROR

Commodore Commodore 64

Severity: Minor

What it means

It is the mirror case of ?NOT INPUT FILE ERROR.
Commodore's manual: an attempt was made to PRINT data to a file which was specified as input only.

Affected Models

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

How to Fix It

  1. CLOSE the file, then OPEN it again for writing.

    On tape, secondary address 1 writes: OPEN 1,1,1,"NAME". Address 2 also writes an end-of-tape marker when the file is closed.
    On disk, W at the end of the name writes: OPEN 2,8,2,"NAME,S,W".

  2. Check that PRINT# uses the number of the file opened for writing.