Java读取文件跳过文件第一行 BufferredReader

BufferedReader br = new BufferedReader(new FileReader("C:/Users/admin/Desktop/复制板.txt"));
String line;
br.readLine(); // 提前读一下就跳过了
while ((line = br.readLine()) != null) {
	System.out.println(line);
}

你可能感兴趣的:(Java)