user
06/17/2017, 12:27 PMline.split(", ".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray() with just line.split(", ")
2. you can use File.useLines function and map the returned sequence instead of filling the mutable list by hand:
return File(fileName).useLines { lines ->
lines.skip(1).map { line ->
// create employee from line
}.toList()
}