Reads the entire contents of a file as a list of lines.
Example:
var path = new Path ("/tmp/file.txt");
var lines = Files.readAllLines (path);
| path |
path to the file. |
|
a list of lines, or null on error. |