`
yingyingol
  • 浏览: 746037 次
文章分类
社区版块
存档分类
最新评论

s = br.readLine();//这行怎么读取不到内容???

 
阅读更多

File f = new File(path);
FileReader fr = new FileReader(f);
BufferedReader br = new BufferedReader(fr);
String s;
try
{
s = br.readLine();
while (s != null)
{
s += s;
text.setText(new String(s));
System.out.println(s);
s = br.readLine();//这行怎么读取不到内容???
}
//text.setText(new String(s));
} catch (IOException e)
{
System.out.println("打开出错");
} finally

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics