package com.izeye.tool.hexdump;
import java.io.*;
public class HexDump {
public static void main(String[] args) {
String filename = args[0];
try {
FileInputStream fis = new FileInputStream(filename);
int data;
while ((data = fis.read()) != -1) {
System.out.print(Integer.toHexString(data).toUpperCase() + " ");
}
} catch (FileNotFoundException e) {
System.err.println(e);
} catch (IOException e) {
System.err.println(e);
}
}
}