Previous: 4.67.2.8. BlockRead procedure To the Table of Contents Next: 4.67.2.10. Break procedure
4.67.2.8. BlockRead procedure Table of Contents 4.67.2.10. Break procedure

- 4.67.2.9. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.9. BlockWrite procedure


4.67.2.9. BlockWrite procedure

Targets: MS-DOS, OS/2, Win32

System Unit

Writes one or more records from a variable.

Declaration:
procedure BlockWrite(var F: File; var Buf;
                      Count: Longint[; var Result: Longint]);
where:
  F        untyped file variable
  Buf      any variable
  Count    an expression of type Longint
  Result   a variable of type Longint
Remarks:
BlockWrite works only on open files and advances the current file pointer. IOResult returns an error code if an error occurred, otherwise IOResult is set to zero. Also note that BlockWrite is not limited to 65,535 (64K) bytes while writing to a file, i.e. Count may be > 64K.


Previous: 4.67.2.8. BlockRead procedure To the Table of Contents Next: 4.67.2.10. Break procedure
4.67.2.8. BlockRead procedure Table of Contents 4.67.2.10. Break procedure

- 4.67.2.9. -