海王  

2012年9月20日

摘要: http://blog.sina.com.cn/s/blog_4d25c9870100qpax.html 一、 从resource中的raw文件夹中获取文件并读取数据(资源文件只能读不能写) String res = ""; try{ InputStream in = getResources().openRawResource(R.raw.bbi); //在\Test\res\raw\bbi.txt, int length = in.available(); byte [] buffer = new byte[length]; in.read(buffer); //res 阅读全文
posted @ 2012-09-20 13:48 海王 阅读(318) 评论(0) 推荐(0)