Sfairadora

  • Reference Guide

write_text

f <- write_text(txt)
write_text(fname, txt)
The parameter f is a variable of the type File. The file must be open for writing. The fname parameter is a name of a file (the String type). The txt parameter is a text (the Text type) to be stored to the file.
The former variant writes the text to the open file. The latter variant writes the text to the file of the specified name. If such a file already exists, the function overwrites its content.

Result

The former variant returns an l-value referring to the variable f. The latter variant returns the value NONE. If an error occurs, both variant return an Error value.

See Also