← Docs
kotlin-stdlib / kotlin.io / readLine

readLine

JVM
Native
1.0
fun readLine ( ) : String ?
(JVM source) (Native source)

Reads a line of input from the standard input stream.

Return the line read or null if the input stream is redirected to a file and the end of file has been reached.

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 .