truncate method

void truncate()

Truncates a file by setting its length to zero.

Implementation

void truncate() {
  FileSync(this).truncate();
}