The argument to the STREAM option is the name of a stream. In this case, the stream is opened with the appropriate options and then closed at the end of the operation. The other way of using a stream would be to directly provide a stream object to the USING option. In this case, the data is written to the stream object without either opening or closing the stream.
Rick On Sat, May 8, 2021 at 10:41 PM J Leslie Turriff <jlturr...@mail.com> wrote: > The Reference manual tells us that the ADDRESS command, using the > WITH ... STREAM option > causes lines to be read or written from or to a STREAM object. It does > not say if the > stream is opened and closed by the ADDRESS command, but the statement that > > | If REPLACE is specified with STREAM, stream is truncated to zero length > before any > | output lines are written. REPLACE is the default. > > seems to imply that it does, since REPLACE and APPEND are options of the > OPEN method, and > they can be specified in the ADDRESS command; on the other hand, > > | If APPEND is specified with STREAM, output lines are appended to stream. > > seems to imply that the stream is already open when ADDRESS is executed. > Does one merely create the STREAM object, then invoke ADDRESS? or > is one required to also > open and close it as well? > > Leslie > > > > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel >
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel