I am going through Java's NIO class from Java 8.
Path dataPath = FileSystems.getDefault().getPath("SomeFile");
Files.write(dataPath,"\n Hello".getBytes("UTF-8"), StandardOpenOption.APPEND);
and
Path dataPath = FileSystems.getDefault().getPath("SomeFile");
BufferedWriter locFile = Files.newBufferedWriter(dataPath);
locFile.write("\n Hello");
Is it just that we are writing in terms of Bytes with Files.write() and Using a BufferedWriter for directly writing the text ?