-
What does Files.lines(Path path) do?
-
- It counts the number of lines for files at the path specified
- It reads all the files at the path specified as a String
- It reads all the lines from a file as a Stream
- It reads the filenames at the path specified
- None of these
Correct Option: C
Files.lines(Path path) that reads all lines from a file as a Stream.