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();//这行怎么读取不到内容???
最新推荐文章于 2022-10-24 23:49:26 发布