Andrew
By: a guest | Mar 22nd, 2010 | Syntax:
Java | Size: 0.37 KB | Hits: 156 | Expires: Never
public ArrayList readChar(String otherPName) {
ArrayList<String> lines = new ArrayList<String>();
try {
BufferedReader in = new BufferedReader(new FileReader(
"./Data/characters/" + otherPName + ".txt"));
String str;
while ((str = in.readLine()) != null) {
lines.add(str);
}
in.close();
} catch (Exception e) {
}
return lines;
}