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

BlockWrite

Write data from memory to an untyped file

Declaration

Source position: systemh.inc line 1187

procedure BlockWrite(

  var f: file;

  const Buf;

  Count: Int64;

  var Result: Int64

);

procedure BlockWrite(

  var f: file;

  const Buf;

  Count: LongInt;

  var Result: LongInt

);

procedure BlockWrite(

  var f: file;

  const Buf;

  Count: Cardinal;

  var Result: Cardinal

);

procedure BlockWrite(

  var f: file;

  const Buf;

  Count: Word;

  var Result: Word

);

procedure BlockWrite(

  var f: file;

  const Buf;

  Count: Word;

  var Result: Integer

);

procedure BlockWrite(

  var f: file;

  const Buf;

  Count: LongInt

);

Description

BlockWrite writes count records from buffer to the file F.A record is a block of bytes with size specified by the Rewrite or Reset statement. If the records couldn't be written to disk, a run-time error is generated. This behavior can be controlled by the {$I} switch.

Errors

Depending on the state of the {$I} switch, a runtime error can be generated if there is an error. In the {$I-} state, use IOResult to check for errors.

See also

Blockread

  

Read data from an untyped file into memory

Close

  

Close a file

Rewrite

  

Open file for writing

Assign

  

Assign a name to a file


Documentation generated on: Sep 28 2017