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
s = br.readLine();//这行怎么读取不到内容???
原创
©著作权归作者所有:来自51CTO博客作者JavaAlpha的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
















