Method Stdio.Fd()->truncate()
- Method truncate
booltruncate(intlength)- Description
Truncate a file.
Truncates the file to the specified length
length.- Returns
Returns
1on success, and0(zero) on failure.- See also
bool truncate(int length)
Truncate a file.
Truncates the file to the specified length length.
Returns 1 on success, and 0 (zero) on failure.