StandardOutputStream

From Xojo Documentation

Revision as of 00:36, 30 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class (inherits from Object)

Used for writing data to the output or error streams in console applications.

Methods
Flush Write
Operator_Convert WriteLine

Interfaces

The StandardOutputStream class implements the Writeable class interface.

Notes

Since there is only one StandardOutputStream for the system, you do not need to create a StandardOutputStream object to use; you just use StdOut or StdErr for the Error stream.

StandardOutputStream incorporates a conversion operator so that you can use StdOut and StdErr as TCPSockets. This is useful only for services that are started for you by xinetd on macOS or Linux. Here is an example of how to use this:

Var outgoing As TCPSocket = StdOut
Var errMsg As TCPSocket = StdErr

See Also

ConsoleApplication class; Input, Print, StandardInputStream, StdErr, StdIn, StdOut, methods; TargetDesktop constant.