ftruncate

(PHP 4 )

ftruncate -- Truncates a file to a given length

Description

bool ftruncate ( resource handle, int size)

Takes the filepointer, handle, and truncates the file to length, size. Returnează TRUE în caz de succes, FALSE în caz contrar.