1
2 public String mReadFileText(String path)
3 {
4 StringBuilder contents = new StringBuilder();
5 try
6 {
7 BufferedReader input = new BufferedReader(new FileReader(path));
8 try
9 {
10 String line = null;
11 while (( line = input.readLine()) != null){
12 contents.append(line);
13 contents.append(System.getProperty("line.separator"));
14 }
15 }
16 finally {input.close();}
17 }catch(Exception ex){ex.printStackTrace();}
18 System.out.println("contents.toString():" + contents.toString());
19 return contents.toString();
20 }
21
22
2 public String mReadFileText(String path)
3 {
4 StringBuilder contents = new StringBuilder();
5 try
6 {
7 BufferedReader input = new BufferedReader(new FileReader(path));
8 try
9 {
10 String line = null;
11 while (( line = input.readLine()) != null){
12 contents.append(line);
13 contents.append(System.getProperty("line.separator"));
14 }
15 }
16 finally {input.close();}
17 }catch(Exception ex){ex.printStackTrace();}
18 System.out.println("contents.toString():" + contents.toString());
19 return contents.toString();
20 }
21
22