//IO流逐行读取文件内容
private static String readString(){
//int len=0;
StringBuffer str=new StringBuffer("");
File file=new File(FILE_IN);
try {
FileInputStream is=new FileInputStream(file);
InputStreamReader isr= new InputStreamReader(is);
BufferedReader in= new BufferedReader(isr);
String line=null;
while( (line=in.readLine())!=null ){
//处理换行符的问题,部分文件不需要处理换行符问题
//if(len != 0){
//str.append("\r\n"+line);
//}else{
str.append(line);
//}
//len++;
}
in.close();
is.close();
} catch (IOException e) {
e.printStackTrace();
}
return str.toString();
}