Extracted from Pike v7.4 release 117 at 2005-08-23.
pike.ida.liu.se
[Top]
predef::
Stdio
Stdio.File

Method Stdio.File()->truncate()


Method truncate

int(0..1) truncate(int length)

Description

Truncate a file.

Truncates the file to the specified length length .

Returns

Returns 1 on success, and 0 (zero) on failure.

See also

open()