// Line by linefunreadFileLineByLineUsingForEachLine(fileName: String)=File(fileName).forEachLine{println(it)}// In a list of linesfunreadFileAsLinesUsingReadLines(fileName: String): List
=File(fileName).readLines()// As a sole stringfunreadFileDirectlyAsText(fileName: String): String
=File(fileName).readText(Charsets.UTF_8)