asSink

fun asSink(startOffset: Long = 0, closeFileOnClose: Boolean = true): Sink

Returns a buffered kotlinx.io.Sink that writes to this file.