1 android文件读写相关文章
http://sunzone.iteye.com/blog/1874382
删除一个目录下所有文件相关方法,想不起来原创文章了,先贴上来:
File dic4java = new File(path4crash); if (dic4java.exists()) { String[] tempList = dic4java.list(); File temp = null; for (int i = 0; i < tempList.length; i++) { if (path4crash.endsWith(File.separator)) { temp = new File(path4crash + tempList[i]); } else { temp = new File(path4crash + File.separator + tempList[i]); }