Java:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
class Test {
ArrayList<String> stringList;
public Test(String s) {
try {
stringList = new ArrayList<String>();
File file = new File(s);
BufferedReader reader = new BufferedReader(new FileReader(file));
String read = null;
while ((read = reader.readLine()) != null) {
stringList.add(read);
}
} catch (Exception e) {
e.printStackTrace();
}
}
public ArrayList<String> getList() {
return stringList;
}
}
Du musst die ArrayList nur auslesen und in deine Liste schmeißen, müsste klappen.