Previous: 4.67.2.90. Trunc64 function To the Table of Contents Next: 4.67.2.92. UpCase function
4.67.2.90. Trunc64 function Table of Contents 4.67.2.92. UpCase function

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


4.67.2.91. Truncate procedure

Targets: MS-DOS, OS/2, Win32


System Unit

Truncates the file at the current file position.

Declaration:
procedure Truncate(var F);
Remarks:
F is any type file except text.

Truncate deletes all data passed the current file pointer of F. An end of file marker is inserted at the current file pointer. With {$I-} IOResult returns an error code if the operation failed. Otherwise IOResult is set to zero.

See also:
{$I} - I/O Checking Switch


Previous: 4.67.2.90. Trunc64 function To the Table of Contents Next: 4.67.2.92. UpCase function
4.67.2.90. Trunc64 function Table of Contents 4.67.2.92. UpCase function

- 4.67.2.91. -