writeBytes

JVM
1.0
fun File.writeBytes(array: ByteArray)

Sets the content of this file as an array of bytes. If this file already exists, it becomes overwritten.

Parameters

array - byte array to write into this file.