WRITE#
Purpose
Rewrites and deletes DATA BANK data.
⎡ DATA BANK data ⎡ DATA BANK data ⎤ ⎤
WRITE# ⎢ └─────┬──────┘ , ⎣ └─────┬──────┘ ⎦ ⎥
⎣ Expression Expression ⎦
Example
WRITE# "ABCDEF"
Parameters
DATA BANK data: String or numeric expression
Explanation
- Sequentially writes DATA BANK data from the current DATA BANK area pointer (see RESTORE#).
- New data are written regardless of whether or not data already exist at the pointer location.
- The entire record (line) is cleared when this command is executed without any DATA BANK data expressions.
- Multiple data items can be delimited using commands.
- The DATA BANK area pointer stays at the next data item written after execution of this
command. Further data item writing begins from this point unless the pointer position
is changed using RESTORE#.
- 255 characters per line can be written using this command, and an error is generated when this limited is exceeded.
- Numeric expressions written using this command are written using the same format as PRINT statement display.
Note, however, that the SET statement has no effect here.
- This command cannot be used to write character codes &H1F or lower.
Sample Program
10 RESTORE#
20 RESTORE# "YOU", 0, 50
30 WRITE# "SHE"
40 GOT 20
50 PRINT "COMPLETE!"
60 END
Changes DATA BANK data beginning with “YOU” to “SHE”.