WRITE
Syntax: #WRI n value [rec]
Related: #READ
Write a value to the nth file. If n is 1-5 then the file is a text file, and the value is appended to the end - rec is ignored. If n is 6-10, then the file is structured, and value is written to the record given by rec. If rec is zero or omitted, value is appended to the file.
WRITE examples
#FILE 1 log.txt
#WRI 1 {logged onto Dark Castle} append the string to the end of text file number 1.
#FILE 6 rec.fil
#WRI 6 {this is record 3} 3 writes the string as the third record in file 6.