When I/O is performed
6.6.5.2 The point at which the file operations "rewrite", "put", "reset", and "get" are
actually performed is implementation-defined.
Irie Pascal implements lazy I/O (i.e. input operations are performed at the
latest opportunity and output operations are performed at the earliest opportunity) in order to
facilitate interactive terminal input and output. The file operations are performed as
specified below:
- rewrite - the file is opened but the file
buffer is empty.
- put - the contents of the file buffer are
appended to the file.
- reset - the file is opened, but the file buffer
is not filled until it is accessed.
- get - If the file buffer is full then the file
buffer is emptied to make room for the next file value (NOTE: In this case no I/O is actually
performed). If the file buffer is empty then the next data value is skipped (i.e. read and
ignored). The file buffer remains empty.