fun main() { val text = "one\ntwo\nthree" val lines = text.lines() println(lines.size) lines.forEach { println(it) } }
split a multi-line string