Chapter
21
Loadim
MS-DOS
and
BASIC
<Input-file
tells BASIC to receive input from
input-file
instead
of
the usual standard input (the keyboard). This option must fol-
low
pathname
and precede all other options in the command line.
Redirection
of
input and output is discussed later in this
chapter.
>[>lOutput-file
redirects BASIC’s output to
output-file
instead
of
the standard output (video display). If you specify
1
greater-
than sign,
output file
is overwritten.
If
you use 2 greater-than
signs, it is appended. This option must follow
input file
(if given)
and precede all other options in the command line. Redirection of
input and output is discussed later in this chapter.
IF:
specifies the maximum number
of
data files that may be
open at any one time. If you specify the
IF:
option, you must also
specify the /I option. If you omit this option, the number of files
defaults
to
three. The number of open files that
MS-DOS
sup-
ports depends on the value given
for
the FILES= command in
the CONFIG.SYS file. We recommend that you set FILES
=
10
for BASIC. BASIC automatically reserves
4
files for internal use.
This leaves 6
for
BASIC file IIO; thus lF:6 is the maximum sup-
ported by
MS-DOS
when FILES= command is set to 10 in the
CONFIGSYS file.
Each file you specify may use a maximum 190 bytes
of
memory.
Sequential access files always use 190 bytes
of
memory. The
amount of memory a direct access file uses depends on the
record size set with the
IS:
option. Each direct access file uses
62
bytes of memory for the file control block, plus the record size.
For example, if you specify a record size
of
50 with the
IS:
switch, the file uses 112 bytes.
1s:
specifies the maximum record size
for
direct access files. If
you use the
IS:
option, you also must specify the
/I
option. If you
omit the
is:
option, BASIC assumes 128 bytes.
IC:
specifies the size
of
the receive buffer for each RS232 commu-
nications channel present in the system. The maximum amount
you can specify depends
on
the number
of
RS232
cards
present
in the system and on the method used
to
load BASIC.
21