write
Command, Keyword
Command
The write command can be used to write text or data to a file, socket, process, or to output (standard out).
write to file— write to a file that was previously opened using open filewrite to socket— write to a socket that was previously opened using open socketwrite to process— write to a process that was previously opened using open processwrite to outputorwrite to stdout-- write text directly to the standard outputwrite to errororwrite to stderr-- write text directly to the standard error stream
Example:
write errorMsg & return to file "/tmp/errorLog.txt"
Further Reading
Resources in our other reference manuals.
Related Terms
Related terms in the SenseTalk Dictionary.
Keyword
Open file for writing.