appendBytes

@JvmName(name = "appendBytesTo")
inline fun File.appendBytes(excl: OpenExcl?, array: ByteArray): File(source)

Writes the full contents of array to the file. If the file exists, all new data will be appended to the end of the file.

Return

The File for chaining operations.

Parameters

excl

The OpenExcl desired for this open operation. If null, then OpenExcl.MaybeCreate.DEFAULT will be used.

array

of bytes to write.

See also

Throws

If there was a failure to open the File for the provided excl argument, if the File points to an existing directory, or if the filesystem threw a security exception.

UnsupportedOperationException

On Kotlin/JS-Browser.