ftruncate

ftruncate -- Truncates a file to a given length

Description

bool ftruncate ( resource handle, int size)

Returns TRUE on success , FALSE on failure .