要从文件”file.dat”文件中读出第10个字节到变量c中,下列哪个正确()
A.
FileInputStream in=new FileInputStream("file.dat"); in.skip(9); int c=in.read();
B.
FileInputStream in=new FileInputStream("file.dat"); in.skip(10); int c=in.read();
C.
FileInputStream in=new FileInputStream("file.dat"); int c=in.read();
D.
RandomAccessFile in=new RandomAccessFile("file.dat"); in.skip(7); int c=in.readByte();