EasyManua.ls Logo

Commodore CBM - Read a Data File

Commodore CBM
447 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...
OPEN
Data
File
Close Data File
Yes
Send Data
to
Specified
Locations
in Memory;
Clear Buffer
Yes
CLOSE
Other
Process
Figure 5-7.
Read
a Data File
(O'''DATA'
1
CLOSE
Step 3: To read a data file. load the program file.The program that you
load should include statements that
will
open.
read.
and close the data file.
There
are
two
commands ta read data fram a tape: INPUT# and GET#. Ta
read
numbers and strings from a data file the INPUT# statement
is
used. The
GET# statement reads one character at a time.
Reading data from a data file using INPUT# and GET#
is
discussed
in
the
following sections.
Step
4:
The last step closes the file
after
the data is read.
CLOSE
the
same logical file that you
OPENed.
OPEN
256

Table of Contents

Other manuals for Commodore CBM

Related product manuals