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



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998