← Docs
kotlin-stdlib / kotlin.io / java.io.Reader / readText

readText

JVM
1.0
fun Reader . readText ( ) : String
(source)

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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .