我通过跳过 2 次从文件中读取字符
fis = new FileInputStream("C:/data/25130.in ");
fis.skip(24305);//This position contains _(UnderScore)
l=fis.read();
fis.skip(24312);//This position also contains _(Underscore)
i = fis.read();
ch= (char)l;
c = (char)i;
System.out.print("Ch: "+ch);//Returns Underscore
System.out.print("C: "+c); // Returns 9 instead of UnderScore
如果我删除拳头跳过如下
fis = new FileInputStream("C:/data/25130.in ");
fis.skip(24312);//This position also contains _(underscore)
i = fis.read();
c = (char)i;
System.out.print("C: "+c); // Now it returns Underscore
我打算在 2 个位置读取 2 个字符。问题出在哪里