TDosStream.Write

Write data from a buffer to the stream.

Declaration

Source position: objects.pp line 355

default 
  procedure Write(var Buf; Count: LongInt);  Virtual;

Description

If the Stream is open and the stream status is stOK then Write will write Count bytes from Buf and place them in the stream.

For an example, see TStream.Read .

Errors

In case of an error, Status is set to StWriteError, and ErrorInfo gets the OS specific error.

See also

Name Description
TDosStream.Read Read data from the stream to a buffer.
TStream.Write Write a number of bytes to the stream.