From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Truncate(var F: File);


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


Deletes all the records after the current file position.

In Object Pascal 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