FileInputStream fstream = new FileInputStream("\\file path");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
while (br.ready()) {
line = br.readLine();
}
如果行号不固定且随时间变化,请告诉我如何从最后一行读取文件?我知道上面的内容对于从第一行读取它很有用......