Go to the first, previous, next, last section, table of contents.


I/O Operators

The write keyword writes its operand on the standard output. This can be useful for debugging or displaying progress information. The write keyword acts as a expression terminator (like the assignment operator) and so must always appear at the end of an expression.

The read keyword reads from the standard input characters up to a newline, returning the string entered (including the newline character). The maximum number of characters that can be read is STRMAX. Since it returns a value it can be used anywhere in an expression.

The send keyword will write its operand to the output file stream (as opposed to write which sends its output to standard output). This is useful for writing larger blocks of text generated from equates that cannot be written into the output file in the ordinary way (by returning the value). Like the write keyword it acts as an expression terminator.

Here is an example of the read, write and send operators.

%%EQUATE feedback
  read >> s
  "Input: " + s write
  s send


Go to the first, previous, next, last section, table of contents.