W3cubDocs

/Kotlin

readLine

Platform and version requirements: JVM (1.0), Native (1.3)
fun readLine(): String?

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.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/read-line.html