标签:
File filesDir = getFilesDir(); File file = new File(filesDir, "test.txt"); FileReader fr = new FileReader(file); int len = 0; char[] buff = new char[20]; StringBuffer sb = new StringBuffer(); while ((len = fr.read(buff)) != -1) { sb.append(new String(buff, 0, len)); } System.out.println(sb.toString());
标签:
原文地址:http://www.cnblogs.com/linson0116/p/4899275.html