File fileA = new File(address);
BufferedReader bf = new BufferedReader(new FileReader(fileA));
String content = "";
StringBuilder sb = new StringBuilder();
while(content != null){
content = bf.readLine();
if(content == null){
break;
}
sb.append(content.trim());
}
}
转载于:https://my.oschina.net/stsinghua/blog/1510217