String filename = "";
File f = new File(filename);
InputStreamReader isr;
try {
isr = new InputStreamReader(new FileInputStream(f));
BufferedReader br = new BufferedReader(isr);
String line;
String content = "";
while((line=br.readLine())!=null){
content += line;
}
} catch (IOException e) {
// TODO 自动生成的 catch 块
e.printStackTrace();
}
网友评论