EasyManua.ls Logo

Apple IIe - Page 221

Apple IIe
320 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...
Cassette
and
Disk
Storage
with
the
Apple
lie
221
Storing Data
in
Disk Files
Caution
must be exercised
when
storing
numeric
values
in disk
files.
For
example,
if
the
following
program
was
executed
in
Applesoft
BASIC:
050
A=
0:
B =
0
100
D$ = CHR$(4)
110
PRINT D$;
"OPEN
TEST
C"
120
PRINT
D$;
"WRITE
TEST
C"
130
PRINT
1,2,3,CR,4,5
140
PRINT D$;
"CLOSE
TEST
C"
150
PRINT D$;
"OPEN
TEST
C"
160 PRINT D$;
"READ
TEST
C"
170 INPUT
A
180 PRINT A
190 INPUT B
200
PRINT
B
202
INPUT
C
204
PRINT
C
210
PRINT
D$;
"CLOSE
TEST
C"
220
END
RUN
The
following
display
would
appear:
123
)
Notice
from
lines 170
and
180
that
the
first
three
of
the
PRINT
statement parameters (in
line
130)
were
concatenated
to
form
a
single
number
(123). The next
output
line
consisted
of
the
fourth
PRINT
statement
(4).
The
final
output
line
consisted
of
the
fifth
PRINT statement parameter.

Other manuals for Apple IIe

Related product manuals