Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<String> lines = Files.readAllLines(Paths.get(FILE_NAME), StandardCharsets.UTF_8);
- for(String line: lines){
- System.out.println(line);
- }
- or
- Files.lines(Paths.get(FILE_NAME), StandardCharsets.UTF_8).forEach(System.out::println);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement