saveTextToDisk

fun Document.saveTextToDisk(filename: String, content: String, mimeType: String? = null)(source)

A convenience method to call saveToDisk with a String instead of a ByteArray.

Note that this always encodes text in UTF-8 format.