getLine

fun String.getLine(line: Int): String?

Return

the line at the specified index, or null if the index is out of bounds

Parameters

line

the line number (0-based)