MAXFILES
This page was last modified 08:42, 27 January 2018 by NYYRIKKI. Based on work by Mars2000you and Gdx.

Contents

Effect

Determines the maximum of files that can be opened simultaneously with the OPEN instruction.

Syntax

MAXFILES=<maximum>

Parameter

<maximum> is a number between 0 and 15.

Note that the maximum of files that can be opened at the same time can't exceed 6 on a disk and 2 on a QuickDisk. When computer is started the default value is 1.

Example

10 MAXFILES=2
20 OPEN "CAS:DEMO" FOR INPUT AS #1
30 OPEN "LPT:" FOR OUTPUT AS #2
40 INPUT #1,A$
50 PRINT #2,A$

Related to

CLEAR, CLOSE, OPEN

Compatibility

MSX-BASIC 1.0 or higher