writeText

suspend fun writeText(path: String, text: String, overwrite: Boolean = true)

Encodes text as UTF-8 and writes it to a file.