Skip to content

TIOStream

Stream which handles standard input/output and stderr.

Declaration

Source position: iostream.pp line 33

type

  TIOStream = class(THandleStream)
  public
    constructor Create;
    function Read : LongInt;
    function Write : LongInt;
    function Seek : Int64;
  end;

Description

TIOStream can be used to create a stream which reads from or writes to the standard input, output or stderr file descriptors. It is a descendent of THandleStream. The type of stream that is created is determined by the TIOSType argument to the constructor. The handle of the standard input, output or stderr file descriptors is determined automatically.

The TIOStream keeps an internal Position, and attempts to provide minimal Seek behaviour based on this position.

Methods

Member Visibility Description
Create public Construct a new instance of TIOStream.
Read public Read data from the stream.
Seek public Set the stream position.
Write public Write data to the stream.
See all Methods

See also

Name Description
TIOSType Type of stream to create.
THandleStream