resize

fun resize(size: Long)

Changes the number of bytes in this file to size. This will remove bytes from the end if the new size is smaller. It will add 0 bytes to the end if it is larger.