System.Truncate

From RAD Studio API Documentation
Revision as of 19:56, 11 November 2011 by L10nBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

procedure Truncate(var F: File);

Contents

Properties

Type Visibility Source Unit Parent
procedure public System.pas System System

Description

Deletes all the records after the current file position.

In Delphi code, call Truncate to cause the current file position to become end-of-file (Eof(F) is true).

F is a file variable of any type except a text file. Truncate does not work on text files. F must be open.

See Also


Code Examples

Personal tools
Translations