メインコンテンツまでスキップ
バージョン:25.4

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 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

Example:

write errorMsg & return to file "/tmp/errorLog.txt"

Further Reading

Resources in our other reference manuals.

Related terms in the SenseTalk Dictionary.

Keyword

Open file for writing.