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

readLines

JVM
1.0
fun Reader . readLines ( ) : List < String >
(source)

Reads this reader content as a list of lines.

Do not use this function for huge files.

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 .