#include main(int argc, char **argv) { int n; FILE *f; unsigned char b; f = fopen(argv[1],"r"); while( fread(&b,1,1,f) == 1) printf("%x\n",b); }