2012年8月14日

Android读取文件

摘要: 从sd卡中读取一个文件,读取和JAVA类似。public String loadContentFromSDCard(String fileName) { String content = null; try{ File f = new File("sdcard/" + fileName); int len = (int)f.length(); byte[] buf= new byte[len]; FileInputStream fis = new FileInputStream(f); fis.read(b... 阅读全文

posted @ 2012-08-14 22:24 ShunHoo 阅读(80) 评论(0) 推荐(0) 编辑

导航