2014/04/14 16:11
一、读取txt文件时,从指定的行开始读取
public static LineNumberReader skipLine(LineNumberReader lnr,int skipCount) throws IOException{
for (int i = 1; i <= skipCount; i++) {
lnr.readLine();
}
return lnr;
}
lnr.skip(Long n);这个方法是跳过指定的字符,而不是行