Chapter
10 I
BASIC Keywords
WRITE#
Statement
WRITE#buffer,
data[,data,.
..I
Writes
data to
a sequential access disk file.
Buffer is the number assigned to the file when you opened it.
Data may be numeric or string expressions. If you specify more
than one data item, separate the items with commas.
WRITE# inserts commas between the data items it writes to
disk.
It
delimits strings with quotation marks. Therefore, it is
not necessary to put explicit delimiters between the data.
WRITE# inserts a carriage return after writing the last data
item to disk.
Example
A$="MICROCOMPUTER":
B$="NEWS"
W R I T E # I
,
A $
, E $
writes the following image to disk:
"MICROCOMPUTER" ,"NEWS"
348