All ASCII chracters generation

shabbir's Avatar author of All ASCII chracters generation
This is an article on All ASCII chracters generation in C.

Introduction



I always like smilies and the ASCII characters can behave like good smileys and so I wrote a small utility to get all tha ASCII values of the characters and I can easily add them anywhere I prefer

The Code


Code: C
int i;
FILE *fp;
fp = fopen("c:\\code.txt","w");
for(i=0;i<256;i++)
{
    fprintf(fp,"%d\t%c\n",i,i);
    printf("%d\t%c\n",i,i);
}
fclose(fp);
Attachment contains the table of ASCII value to the corresponding characters.
Attached Files
File Type: zip ASCII.zip (1.3 KB, 30 views)
Contributor
5Mar2008,18:56   #2
aisha.ansari84's Avatar
i didnt get all the codes
Ambitious contributor
6Mar2008,13:14   #3
rahul.mca2001's Avatar
i works fine