Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

FWrite

Writes a number of blocks to an output (buffered)

Declaration

Source position: amigados.pas line 1851

function FWrite(

  fh: LongInt;

  block: Pointer;

  blocklen: Cardinal;

  number: Cardinal

):LongInt;

Arguments

fh

  

filehandle to use for buffered I/O

block

  

Area to write bytes from.

blocklen

  

Number of blocks to block. Must be > 0.

Function result

Number of _blocks_ written. On an error, the number of blocks actually written is returned.

Description

Attempts to write a number of blocks, each blocklen long, from the specified buffer to the output stream. May return less than the number of blocks requested, if there is some error such as a full disk or r/w error. This call is buffered.

See also

FPutC

  

Write a character to the specified output

FRead

  

Reads a number of blocks from an input (buffered)

FPuts

  

Writes a string the the specified output


Documentation generated on: 2021-07-30