[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Write data to the file from a buffer in memory.
Source position: objects.pp line 352
procedure TBufStream.Write( |
var Buf; |
Count: LongInt |
); virtual; |
If the Stream is open and the stream status is stOKthen Writewill write Countbytes from Bufand place them in the stream.
Writewill first try to write the data to the stream's internal buffer. When the internal buffer is full, then the contents will be written to disk. This process is repeated until all data has been written.
For an example, see TStream.Read.
In case of an error, Statusis set to StWriteError, and ErrorInfogets the OS specific error.
|
Write a number of bytes to the stream. |
|
|
Read data from the file to a buffer in memory. |