public String readFile(String filePath) throws IOException {
File file = new File(filePath);
BufferedReader br = new BufferedReader(new FileReader(file));
String st;
String stringOutput="";
while ((st = br.readLine()) != null) {
stringOutput = stringOutput +st;
}
return stringOutput;
}
No comments:
Post a Comment