#include <stdio.h>
int main(void)
{
int j;
int ch;
int done;
FILE *in;
done = 0;
j = 0;
in = fopen(“/home/david/graphs/golomb5/hexdumpdotc/abbyspeech01a.txt”, “r”);
while( done == 0)
{
ch = fgetc(in);
if(ch == EOF)
{
done = 1;
}
if(done == 0)
{
j = j+1;
printf(“%02x “, ch);
if(0 == (j%16))
{
printf(“\n”);
}
}
}
if( 0 < (j%16) )
{
printf(“\n”);
}
return 0;
}