← Docs
kotlin-stdlib / kotlin.io / java.io.File / writeBytes

writeBytes

JVM
1.0
fun File . writeBytes ( array : ByteArray )
(source)

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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .