write
- 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 file
- write to socket — write to a socket that was previously opened using open socket
- write to process — write to a process that was previously opened using open process
- write to output or write to stdout -- write text directly to the standard output
- write to error or write to stderr -- write text directly to the standard error stream
-
Examples: +
write errorMsg & return to file "/tmp/errorLog.txt"
-
Related: open, read, seek
-
- keyword
- open file for write