getLines

fun getLines(stream: InputStream, charset: Charset): MutableList<String>

Accesses a resource by name and returns the (non comment) lines containing data using the given character encoding.

A comment line is any line that starts with the character "#"

Return

a list of non-blank non-comment lines with whitespace trimmed

Throws

IOException

If there is a low-level I/O error.