摘要:
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());第二行,创建文件 阅读全文