nextLine

fun nextLine(): String?

Reads a line from the input stream.

Return

Returns a line from the input stream in the form a String not including the new line character. Returns null when there are no more lines.

Throws

Throws IOException when something terrible happens.