Since 3.5

Stream = OPEN STRING [ String ] [ FOR [ READ ] [ WRITE ] ]

This instruction allows you to access a string with the stream interface.

Opening for reading

If the string is opened for reading, then the String argument should be specified. Then the string contents are accessed sequentially.

Reading a string stream is always possible, whatever the options are.

Opening for writing

If the string is opened for writing, then an internal string buffer accumulates all the written data. This string buffer is returned by the CLOSE instruction.

If the String argument is specified, then it is written to the internal buffer first.

See also