write

fun write(b: Int)

Writes the low-order 8 bits of b at the current position and advances the file pointer by 1.


fun write(b: ByteArray)

Writes all bytes from b at the current position and advances the file pointer.


fun write(b: ByteArray, off: Int, len: Int): Int

Writes len bytes from b starting at offset off at the current position and advances the file pointer by the number of bytes written.