摘要: StringBuffer sb = new StringBuffer();File file = new File("myfile.txt");BufferedReader br = new BufferedReader(new FileReader(file));String line = "";while((line = br.readLine())!=null){sb.append(line);}br.close();(TextView)findViewById(R.id.text1).setText(sb.toString());第二行,创建文件 阅读全文
posted @ 2012-12-05 19:24 Andye 阅读(27017) 评论(1) 推荐(0) 编辑