private void readFromFile() throws IOException{ InputStream is = this.getAssets().open("wyw.txt"); InputStreamReader isr = new InputStreamReader(is, "GBK"); BufferedReader br = new BufferedReader(isr); String str = br.readLine(); while((str = br.readLine()) != null){ Log.v("result", str); } br.close(); is.close(); }
本文出自 “爬过山见过海” 博客,谢绝转载!
原文地址:http://670176656.blog.51cto.com/4500575/1553361