#include #include char *digits[] = {"0xff","0xff","0xff","0xc3","0x99","0x99","0x99","0x99", "0x99","0x99","0x99","0x99","0xc3","0xff","0xff","0xff", "0xff","0xff","0xff","0xcf","0xc7","0xcf","0xcf","0xcf", "0xcf","0xcf","0xcf","0xcf","0xcf","0xff","0xff","0xff", "0xff","0xff","0xff","0xc3","0x99","0x9f","0x9f","0xcf", "0xe7","0xf3","0xf9","0xf9","0x81","0xff","0xff","0xff", "0xff","0xff","0xff","0xc3","0x99","0x9f","0x9f","0xc7", "0x9f","0x9f","0x9f","0x99","0xc3","0xff","0xff","0xff", "0xff","0xff","0xff","0xcf","0xcf","0xc7","0xc7","0xcb", "0xcb","0xcd","0x81","0xcf","0x87","0xff","0xff","0xff", "0xff","0xff","0xff","0x81","0xf9","0xf9","0xf9","0xc1", "0x9f","0x9f","0x9f","0x99","0xc3","0xff","0xff","0xff", "0xff","0xff","0xff","0xc7","0xf3","0xf9","0xf9","0xc1", "0x99","0x99","0x99","0x99","0xc3","0xff","0xff","0xff", "0xff","0xff","0xff","0x81","0x99","0x9f","0x9f","0xcf", "0xcf","0xe7","0xe7","0xf3","0xf3","0xff","0xff","0xff", "0xff","0xff","0xff","0xc3","0x99","0x99","0x99","0xc3", "0x99","0x99","0x99","0x99","0xc3","0xff","0xff","0xff", "0xff","0xff","0xff","0xc3","0x99","0x99","0x99","0x99", "0x83","0x9f","0x9f","0xcf","0xe3","0xff","0xff","0xff" }; main () { long num; FILE *fp = NULL; FILE *out = NULL; char numb[7]; char hold[8]= "00000000"; char cc[]= "0"; int len; int holdlen; int x; int y; int c; int i; /** change to the file that holds your numeric counter value **/ fp = fopen("count.txt","r"); fgets(numb, 8, fp); fclose(fp); sscanf(numb,"%ld",&num); num++; /** change to the file that holds your numeric counter value **/ out = fopen("count.txt","w"); fprintf(out,"%ld",num); fclose(out); len = strlen(numb); for (i=0; i