klyn.io.ConsoleTextReader.readLine
method
public readLine() as String throws IOException
Description

Reads one standard-input line as strict UTF-8, preserving its line terminator and embedded U+0000 scalars. Read-ahead is shared with ConsoleInputStream, so switching to a byte view does not discard input.

Returns

Next line, or an empty string at end-of-stream.

Throws
  • IOException if reading fails or the line is not valid UTF-8.
Example

line = Application.in.readLine()