Extracted from Pike v8.0 release 240 as of 2016-05-31.
   

Method file_truncate()


Method file_truncate

int file_truncate(string file, int length)

Description

Truncates the file file to the length specified in length.

Returns

Returns 1 if ok, 0 if failed.