writeBytes

inline fun Path.writeBytes(array: ByteArray, vararg options: OpenOption)(source)

Writes an array of bytes to this file.

By default, the file will be overwritten if it already exists, but you can control this behavior with options.

Since Kotlin

1.5

Parameters

array

byte array to write into this file.

options

options to determine how the file is opened.