Here you can find the source of readFileList(File file)
protected static List<File> readFileList(File file) throws FileNotFoundException, IOException
//package com.java2s; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { protected static List<File> readFileList(File file) throws FileNotFoundException, IOException { List<File> files = new ArrayList<File>(); String path = file.getParentFile().getAbsolutePath(); BufferedReader content = new BufferedReader(new InputStreamReader(new FileInputStream(file))); String line = content.readLine(); while (line != null) { files.add(new File(path + "/" + line)); line = content.readLine();//w ww.j a v a 2s. co m } return files; } }