writeUtf8
@JvmName(name = "writeUtf8To")
Writes the full contents of text to the file (as UTF-8).
Return
The File for chaining operations.
Parameters
excl
The OpenExcl desired for this open operation. If null
, then OpenExcl.MaybeCreate.DEFAULT will be used.
appending
If true
, text written to this file will occur at the end of the file. If false
, the file will be truncated if it exists.
text
to write to the file.
See also
Throws
UnsupportedOperationException
On Kotlin/JS-Browser.
@JvmName(name = "writeUtf8To")
Writes the full contents of text to the file (as UTF-8). The File will be truncated if it exists.
Return
The File for chaining operations.
Parameters
excl
The OpenExcl desired for this open operation. If null
, then OpenExcl.MaybeCreate.DEFAULT will be used.
text
to write to the file.
See also
Throws
UnsupportedOperationException
On Kotlin/JS-Browser.