writeBytes

JVM
JRE7
1.4
@ExperimentalPathApi fun Path.writeBytes(
    array: ByteArray,
    vararg options: OpenOption)

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.

Parameters

array - byte array to write into this file.

options - options to determine how the file is opened.