Here you can find the source of readAllLines(Path path)
public static List<String> readAllLines(Path path) throws IOException
//package com.java2s; //License from project: Apache License import java.io.*; import java.nio.charset.*; import java.nio.file.*; import java.util.List; public class Main { public static List<String> readAllLines(Path path) throws IOException { return Files.readAllLines(path, StandardCharsets.UTF_8); }//from w w w.j a v a 2 s . co m }