字符流
FileReader fr = new FileReader(new File(path));
BufferedReader br = new BufferedReader(fr);
String temp = "";
String article = "";
while ((temp = br.readLine()) != null) {
article = article + temp;
}
return article;
字节流
File file = new File(path);
FileInputStream fis = new FileInputStream(file);
byte[] buffer = new byte[(int) file.length()];
fis.read(buffer);
String article = new String(buffer);
fis.close();
return article;