What\'s the best way to read a line from a file using the New I/O ?
I can only get a byte at a time.
Any idea?
Or for small files you can do this:
List smallFilesLines = Files.readAllLines( FileSystems.getDefault().getPath("smallFile.txt"), StandardCharsets.UTF_8); for (String oneLine : smallFilesLines) { System.out.println(oneLine); }