readText

abstract suspend fun readText(encoding: String? = null, progress: (Float) -> Unit = {}): String?

Reads the file contents as a String.

Return

the file contents or null if there was an error

Parameters

encoding

of the resulting string

progress

listener