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, 31 views)
0
aisha.ansari84's Avatar, Join Date: Feb 2008
Contributor
i didnt get all the codes
0
rahul.mca2001's Avatar, Join Date: Feb 2008
Ambitious contributor
i works fine