/* Collection of code snippets by Arne Vajhøj */
/* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) */
#include <stdio.h>

int main(int argc, char *argv[])
{
   printf("C (binary, bytes) - %s\n", argv[1]);
   FILE *fp = fopen(argv[1], "rb");
   int c;
   while((c = fgetc(fp)) >= 0)
   {
      printf("%02X", c);
   }
   printf("\n");
   fclose(fp);
}
