io流是对数据传输的总称,根据传输特性将流抽象为各种类,
实例化FileInputStream,并且调用read方法读取字节数据并且打英
nputStream in=new FileInputStream("e:\\);
int b;
int n=0;
while(b=in.read())!=-1{
if(b<0xf){//若值小于oxf,前面补0
System.out.print('0");
}
system.out.println(Integer.toHexString(b)+""));
in.close();
}