Syntax: #WRI filenum value recnum
Related: #READ

Write a value to the filenum file. If filenum is 1-5 then the file is a text file, and the value is appended to the end - recnum is ignored. If filenum is 6-10, then the file is structured, and value is written to the record given by recnum. If recnum 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.

Add comment

Login or register to post comments