如何控制读取下一行?for (int j = 1; (temp = br.readLine()) != null && !temp.equals(oldStr); j++) { buf = buf.append(temp); buf = buf.append(System.getProperty("line.separator"));}
额额额额,用while吧循环吧
就一直读咯,文件指针会一起移动的