File file=new File(getFilesDir(),"info.txt");
if (file.exists()) {
try {
FileInputStream fis=new FileInputStream(file);
BufferedReader br=new BufferedReader(new InputStreamReader(fis));
String txt=br.readLine();
System.out.println(txt);
} catch (Exception e) {
e.printStackTrace();
}
}
在内部存储中读文件
最新推荐文章于 2021-05-25 17:02:47 发布