Changes logical length. sparse marks the file sparse on Windows before extending, so that later far-offset writes do not zero-fill the gap.
sparse
void truncate(int newLength, {bool sparse = true});