FileReader f;
int len;
f = null;
try {
f = new FileReader(fn);
String s = "";
char[] cbuf = new char[200];
while ((len = f.read(cbuf, 0, cbuf.length)) >= 0) {
s += String.valueOf(cbuf, 0, len);
}
return s;
} catch (IOException ex) {
return "ERROR";
} finally {
if (f != null) {
try {
f.close();
} catch (IOException ex) {
return "ERROR!";
}
}
}