FileReader fr = new FileReader(selectedFile);
BufferedReader br = new BufferedReader(fr);
for(String line=br.readLine(); line!=null; line=br.readLine()){
File f=new File(line);
String s = f.getName();
Stats stats = new Stats(s);
types.put(s,stats);
}
return new ActionResult(selectedFile, selectedFile.getName(), this.toString(), details, types, true, timer.getDuration());
}