fun <ERROR CLASS><File>.text(charset: Charset = Charsets.UTF_8): <ERROR CLASS>
Platform and version requirements: JVM
Returns an assert on the file's contents as text.