Android从文件中读入数据
FileInputStream fileInputStream=new FileInputStream(data_path);
BufferedReader bfr=new BufferedReader(new InputStreamReader(fileInputStream));
String instring;
while ((instring=bfr.readLine())!=null){
Log.d(TAG,instring);
}
微信扫一扫
FileInputStream fileInputStream=new FileInputStream(data_path);
BufferedReader bfr=new BufferedReader(new InputStreamReader(fileInputStream));
String instring;
while ((instring=bfr.readLine())!=null){
Log.d(TAG,instring);
}
相关推荐