표준 입력 스트림에서 입력 라인을 읽습니다. 입력 스트림이 파일로 리디렉션되고 파일 끝에 도달한 경우 읽은 줄을 반환하거나 null 을 반환합니다.
public fun readLine(): String? = LineReader.readLine(System.`in`, Charset.defaultCharset())
readLine - Kotlin Programming Language
kotlinlang.org
'코틀린 > etc.' 카테고리의 다른 글
[Kotlin][Validation Operations] require (0) | 2024.08.16 |
---|---|
[Kotlin][Collection] Mutable / Immutable (0) | 2024.08.07 |
[Kotlin][Input Operation] readln (0) | 2024.08.05 |