Here you can find the source of readFree(File file)
private static List<String> readFree(File file) throws IOException
//package com.java2s; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class Main { private static List<String> readFree(File file) throws IOException { List<String> archive = new ArrayList<String>(); BufferedReader reader = new BufferedReader(new FileReader(file)); String s;// ww w . java2 s .c o m do { s = reader.readLine(); if (s != null) { archive.add(s); } } while (s != null); reader.close(); return archive; } }