?TOO MANY FILES ERROR

Commodore Commodore 64

Severity: Minor

What it means

The C64 Programmer's Reference Guide lists it as KERNAL error 1: too many open files.
Commodore's C128 guide, for the same message, gives the limit: 10 files OPEN at one time.

Affected Models

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

How to Fix It

  1. CLOSE each file as soon as the program is done with it.

  2. Look for an OPEN inside a loop or a subroutine that never reaches its CLOSE.