readLines
Reads the file content as a list of lines.
It's not recommended to use this function on huge files. For reading lines of a large file or a file of unknown size, use Path.forEachLine or Path.useLines.
Parameters
charset
- character set to use for reading text, UTF-8 by default.
Return list of file lines.