EasyManua.ls Logo

Commodore VIC-20 - I;O Statements

Commodore VIC-20
308 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
I/O
STATEMENTS
CLOSE
CMD
GET#
INPUT#
OPEN
PRINT#
CLOSE
Format:
Abbreviation:
Screen
Display:
CLOSE
fitef
CL
fcil^B
O
CL
□
This closes
the
file
that
was
started
in
an
OPEN
statement.
It
is
recommended
that
a
PRINT#
to
that
file
be
performed
before
closing
the
file,
to
make
sure
that
all
data
has
been
transmitted.
Not
closing
an
OPEN
file
results
in
a
FILE
OPEN
ERROR,
[
EXAMPLE:
OPEN
1,4
:
CMD
Format:
CMD
file*
PRINT#1
,
"HI
THERE!"
Abbreviation:
cKkiijjm
:
CLOSE
1
Screen
Display:
This
changes
the
normal
output
device
of
the
VIC
from
the
screen
to
the
file
specified.
In
this
way,
data
and
LISTings
can
be
sent
to
other
devices,
like
the
printer,
disk,
or
tape
drive.
When
finished
transmitting,
to
reset
output
to
the
screen,
do
a
PRINT
#
and
CLOSE
the
file.
EXAMPLE:
OPEN
1,4:
CMD
1
:
PRINT
"HELLO
THERE!lh
:PRINT#1
:
CLOSE
1
35