openWriteBin

HC Communication File opening openWriteBin
openWrite openAppend

openWriteBin filename


command. Opens the named file for binary writing. If the file already existed, the old version is deleted and a new, empty file created.

Example:

openWrite "temp.txt
setWriter "temp.txt
repeat 256 [type char repcount]
setWriter []
close "temp.txt

And the file "temp.txt" then should contain all the 256 chars.

openWrite openAppend