truncateFile abstract method

void truncateFile(
  1. String path,
  2. int length
)

Sets the size of the file at path to length.

If the file was smaller than length before, the rest is filled with zeroes.

Implementation

void truncateFile(String path, int length);