标签:
1、将字符串写入文件流中。使用的是getFilesDir()。存到手机内存中。
File file = new File(getFilesDir() + "/info.txt"); try { OutputStream out = new FileOutputStream(file); out.write(text.getBytes()); out.close(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); }
标签:
原文地址:http://www.cnblogs.com/wswbk/p/5269829.html