OPEN STRING

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, the String argument must 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, the internal buffer is initialized with it first.

See also