STREAM

 ───STREAM(name──┬──────────────────────────┬─)────
                   └──,───┬───────────────────┤
                          ├─C,──streamcommand─┤
                          ├─D─────────────────┤
                          └─S─────────────────┘

STREAM returns a string describing the state of, or the result of an operation upon, the character stream name. This function is used to request information on the state of an input or output stream, or to carry out some specific operation on the stream.

The first argument, name, specifies the stream to be accessed. The second argument can be one of the following strings (of which only the first letter is needed) which describes the action to be carried out: