android 文件流
无线大脑袋 2018-10-03 01:22:21 try {
out = new FileOutputStream(file);
out.write("123".getBytes());
out.close();
in = new FileInputStream(file);
in.read(buffer);
String string = new String(buffer);
if(string.equals("123"))
textView.setText(string);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
textView.setText(string) 不执行,这是为什么