Description

Truncate changes the size of the file. It does not change the I/O offset. If there is an error, it will be of type *PathError.