help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TIOStream.Write

Write data to the stream

Declaration

Source position: iostream.pp line 33

public function TIOStream.Write(

  const Buffer;

  Count: LongInt

):LongInt; override;

Arguments

Buffer

  

Memory buffer containing the data to be written.

Count

  

Number of bytes to write.

Function result

Number of bytes actually written.

Description

Write checks first whether the type of the stream allows writing (type is iosOutput or iosError). If not, it raises a EIOStreamError exception. If the stream can be written to, it calls the inherited Write to actually read the data.

Errors

An EIOStreamError exception is raised if the stream does not allow writing.

See also

TIOSType

  

Type of stream to create

TIOStream.Read

  

Read data from the stream.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505