Using The Input/Paint Commands - Atari DOS 2.5: XF551 Owner's Manual

Atari dos 2.5 disk drive
Table of Contents

Advertisement

In
the
example OPEN #2
, 8, 0, "
01
:
ATAR I800 .BAS
",
10CB #2 is
opened for output to a file in
Drive
1 designated as ATAR I800
.
BAS.
Ifthere is no file by that name in Drive
1,
DOS creates one.
If a file by that name already exists
,
the OPEN statement de-
stroys that
file
and creates a
new
one. It the IOCB has already
been opened
,
the screen displays an
ERAOR-129
(File Already
Opened).
CLOSE (CL.)
Format
: CLOSE
#iocb
Example:
300
CLOSE
#
2
The
CLOSE
command
releases
the
10CB
that
had
been
previ-
ously opened
for
read/write operations. The
number
following
the mandatory # must be the same as the IOCB
reference
num·
ber used
in
the
OPEN statement (see example below).
The
same
IOCB
cannot be
used
for more than one
device
at a
lime
.
You will
not
gel an error
message
if you close a tile that has already been
closed
.
10
OPEt~
#1,:::,£1,
"[I:FIL
.
I:AS"
2'Z1 CLC6E
# 1
Note:
The
END
command will close all open
files
(except
IOCB
#
0).
Using the
INPUT/
PRINT Commands
INPUT (I.)
Format:
INPUT [#iOCbU]
{:~:;}
L{:::;}.J
Examples:
100
I
HPUT
#2;
>~,
y
100 HIPUT
#2;
1·1$
This command is used
to request
data (either numerical or
string) from a specified device
.
INPUT
is the complement of
PR
INT.
When it is used without a
#iocb,
the data is assumed to
be
from
the default
device (E:).INPUT
uses
record 110 (see
PRINT).
68

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xf551

Table of Contents