[Overview][Types][Classes][Index] | Reference for unit 'iostream' (#fcl)

# TIOStream

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Stream which handles standard input/output and stderr.

## Declaration

Source position: iostream.pp line 27

`type TIOStream = class(THandleStream)`
`public`
`constructor Create();` |  | Construct a new instance of TIOStream
`function Read(); override;` |  | Read data from the stream.
`function Write(); override;` |  | Write data to the stream
`function Seek(); override;` |  | Set the stream position
`end;`

## Inheritance

`TIOStream` |  | Stream which handles standard input/output and stderr.
`THandleStream`
`TStream`
`TObject`

## 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.

## See also

TIOSType |  | Type of stream to create
THandleStream