Reading the contents of a file line by line

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.17.168