Previous: 4.67.2.7. Assigned function To the Table of Contents Next: 4.67.2.9. BlockWrite procedure
4.67.2.7. Assigned function Table of Contents 4.67.2.9. BlockWrite procedure

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


4.67.2.8. BlockRead procedure

Targets: MS-DOS, OS/2, Win32

System Unit

Reads one or more records into a variable.

Declaration:
procedure BlockRead(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:
BlockRead 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 BlockRead is not limited to 65,535 (64K) bytes while reading from a file, i.e. Count may be > 64K.


Previous: 4.67.2.7. Assigned function To the Table of Contents Next: 4.67.2.9. BlockWrite procedure
4.67.2.7. Assigned function Table of Contents 4.67.2.9. BlockWrite procedure

- 4.67.2.8. -