public String readfile(String frompath) {
File file1 = null;
String line = "";
String context = "";
try {
file1 = new File(frompath);
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file1), "utf-8"));
while ((line = reader.readLine()) != null) {
context = line;
}
} catch (IOException ie) {
ie.printStackTrace();
} finally {
}
//System.out.println(context);
return context;
}
File file1 = null;
String line = "";
String context = "";
try {
file1 = new File(frompath);
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(file1), "utf-8"));
while ((line = reader.readLine()) != null) {
context = line;
}
} catch (IOException ie) {
ie.printStackTrace();
} finally {
}
//System.out.println(context);
return context;
}