Write text to file
Files.write(Paths.get("file.txt"), Collections.singletonList("line"), Charset.forName("UTF-8"));