W3cubDocs

/Kotlin

readText

fun Reader.readText(): String

Platform and version requirements: JVM

Reads this reader completely as a String.

Note: It is the caller's responsibility to close this reader.

Return the string with corresponding file content.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/java.io.-reader/read-text.html