public static List<String> readLines(File file) throws IOException {
  return readLines(file,Charset.defaultCharset());
}

public static List < String > readLines ( File file ) throws IOException { return readLines ( file , Charset . defaultCharset ( ) ) ; }
reads the contents of a file line by line to a list of strings using the default encoding for the vm . the file is always closed .
