next up previous contents index
Next: fdWrite Up: Functions and procedures Previous: fdSeek

fdTruncate

   

Declaration:

Function fdTruncate (fd,size:longint) : boolean;

Description:

fdTruncate sets the length of a file in fd on size bytes, where size must be less than or equal to the current length of the file in fd.

The function returns True if the call was successful, false if an error occurred.

Errors:

Errors are returned in LinuxError.

See also:

fdOpen, fdClose, fdRead,fdWrite,fdFlush, fdSeek



root
Fri Sep 11 18:24:36 CEST 1998