W3cubDocs

/Kotlin

readLine

fun readLine(): String?

Platform and version requirements: JVM

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–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/read-line.html