Sfairadora

  • Reference Guide

write_block

f <- write_block(bin)
f <- write_block(bin, size)
The parameter f is a variable of the type File. The file must be open for writing. The function stores the data from the bin parameter (of the Binary type) to the file. If the parameter size (of the type Int) is specified, the function stores only specified number of bytes. If the size of the str string is less than the size specified, only that many bytes of the data are stored.

Return Value

An l-value referring to the variable f is returned. If an error occurs, an Error value is returned.
Specifying a negative size is an error.

See Also