首页 > 移动平台 > 详细

android存储的理解

时间:2016-02-24 20:51:51      阅读:302      评论:0      收藏:0      [点我收藏+]

anroid内部操作只需要函数提供文件名,and progremming could encoutage the file_title only. dont need inputStream /outputStream any more. could get the input/outputStream.
File file=new File(context.getFileDir(),filename);
if(!file.exists()){
file.createNewFile();
}
//or
OutputStream outputStream=operFileOutput(filename,Context.MODE_PRIVATE);
outputStream.write(string.getBytes());
outputStream.close();

android存储的理解

原文:http://www.cnblogs.com/gentspy/p/5214266.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!