以读取文件的最后6位为例:
public void readLastLine(String fileString) throws IOException { File file = new File(fileString); if (!file.exists() || file.isDirectory() || !file.canRead()) { return; } RandomAccessFile randomFile = null; try { System.out.println("
以读取文件的最后6位为例:
public void readLastLine(String fileString) throws IOException { File file = new File(fileString); if (!file.exists() || file.isDirectory() || !file.canRead()) { return; } RandomAccessFile randomFile = null; try { System.out.println("