Read all lines from a file as a Stream. Bytes from the file are
decoded into characters using the UTF-8
charset.
This method works as if invoking it were equivalent to evaluating the expression:
Files.lines(path, StandardCharsets.UTF_8)
path
| the path to the file |
Stream
IOException
| if an I/O error occurs opening the file | |
SecurityException
| In the case of the default provider, and a security manager is
installed, the checkRead
method is invoked to check read access to the file. |
Diagram: Files