[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TDosStream.Write

Write data from a buffer to the stream.

Declaration

Source position: objects.pp line 321

procedure TDosStream.Write(

  var Buf;

  Count: LongInt

); virtual;

Description

If the Stream is open and the stream status is stOKthen Writewill write Countbytes from Bufand place them in the stream.

For an example, see TStream.Read.

Errors

In case of an error, Statusis set to StWriteError, and ErrorInfogets the OS specific error.

See also

TStream.Write

  

Write a number of bytes to the stream.

TDosStream.Read

  

Read data from the stream to a buffer.