kotlin.io.java.io.File.writeBytes

writeBytes

fun File.writeBytes(array: ByteArray)

Platform and version requirements: JVM

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.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache Li