174
CHAPTER
6
Command
Reference
WRITE#
[ Data [ ,
Data]*]
expression expression
Function:
I
Rewrites or deletes memo data
in
the DATA BANK.
Parameter:
®
Data:
Numeric expression or character expression. When a
character string
is
used, place it inside " "
Explanation:
1) Writes data in the record area currently specified
oy RESTORE#.
2) Data are newly written without any relationship
to
data
existence in the
appropriate record area.
3) When no data
is
specified, stored data in the record area are deleted.
4) When plural data exist, these data can be written
on
the same record area by
using
","
for punctuation.
5) After the necessary data are written by the first
WRITE#
statement, the
following data are written
by
the
next
WRITE#
statement.
6) When writing memo data, one step will be required in addition
to
the number
of
characters.
Memo data
ABC
~
XYZ
~
(
26
characters) + 1 step = 2 7 steps
Example:
1 0
REM
da,ta
write
20
RESTORE:!:*
30
WRITE:l:*''X,Y,Z"
} Writes new memo data.
40
GOSUB
1000
50
PRINT'''-'
,,
1 1 0
REM
data
change
120
RESTORE:!:*
130
FOR
J = 1
TO
3
140
WRITE:!:*
STR$(J)
150
NEXT
J