import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
public class Utils {
public static List readLines(File file) throws Exception {
if (!file.exists()) {
return new ArrayList();
}
BufferedReader reader = new BufferedReader(new FileReader(file));
List results = new ArrayList();
String line = reader.readLine();
while (line != null) {
results.add(line);
line = reader.readLine();
}
return results;
}
}