刘伯阳 发表于 2012-5-31 09:45 刚调试了下你的代码错误在这里: 1、在你的文件所在目录下没有love.txt文件,所以找不到文件,找不到文件怎 ...
heima_dinghua 发表于 2012-5-31 10:00 原因在于 if(fr!= null);语句加了分号,导致fr.close();语句无论在什么情况下都会执行,而不是根据if判断的 ...
凡延海 发表于 2012-5-31 10:39 楼主的判断语句 if(fr!= null); 有了分号就会任务if语句后的语句块为空,这个判断功能就不起作用了,后面 ...