In this recipe, we are going to retrieve the contents of a file as a set of consecutive text lines. We are going to use the standard library extension function, File.readLines(), to return a List of a String type representing the next lines of the given File instance.