要从文件file.dat中读出第10个字节到变量c中,下列哪个方法适合? ( )
①
FileInputStream in=new FileInputStream(file.dat); in.skip(9); int c=in.read();
②
FileInputStream in=new FileInputStream(file.dat); in.skip(10); int c=in.read();
③
FileInputStream in=new FileInputStream(file.dat); int c=in.read();
④
RandomAccessFile in=new RandomAccessFile(file.dat); in.skip(9); int c=in.readByte();