日期:2014-05-20 浏览次数:20839 次
public static void main(String []args) throws IOException{
File f1 = new File("d:\\专业 pro\\哈哈 world.txt");
FileInputStream fis;
fis = new FileInputStream(f1);
byte[] bytIn = new byte[(int) f1.length()];
for (int i = 0; i < f1.length(); i++) {
bytIn[i] = (byte) fis.read();
System.out.println(bytIn[i]);
}
}