ftruncate
Truncates a file to a given length
Description
boolftruncate
resourcehandle
intsize
Takes the filepointer, handle, and truncates the file to
length, size. &return.success;
The file pointer is changed only in append mode. In
write mode, additional fseek
call is needed.
Prior to PHP 4.3.3, ftruncate returns an
integer value of 1 on success, instead of
boolean &true;.
See also fopen and
fseek.