// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.io.FileInputStream;
import java.io.InputStream;

public class SeqByt {
    public static void main(String[] args) throws Exception {
        System.out.println("Java (bytes) - " + args[0]);
        InputStream is = new FileInputStream(args[0]);
        int c;
        while((c = is.read()) >= 0) {
            if(c == '\n')
                System.out.printf("\n");
            else
                System.out.printf("%02X", c);
        }
        is.close();
    }
}
