pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]

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.

Module reference for Pike v7.8 release 116, 2008-12-31