System.StdIn
0.40.0
Definitions
def
readLines
[r]
(
rc :
Region[r]
)
: Iterator[String, IO, r]
\ IO
Returns an iterator over lines from the standard input stream.
The iterator ends when the stream is closed or when an error occurs.
When the iterator is garbage collected the standard input stream is closed.
Thus, the readLines
function should not be called more than once per program.
See also Console.readLine
for reading from the console.