File file = new File("trades_3.txt");The Files class doc.
List<String> lines = Files.readLines(file, Charset.defaultCharset());
Showing posts with label Guava. Show all posts
Showing posts with label Guava. Show all posts
Monday, October 27, 2014
Guava Files class
Sometimes you are still in the Java 1.6 land and you just to want to read the entire file into a list. Guava can help you:
Subscribe to:
Posts (Atom)