truncateSync method

Synchronously truncates (or extends) the file to length bytes.

void truncateSync(
int length
)

Synchronously truncates (or extends) the file to length bytes.

Throws a FileSystemException if the operation fails.