#include <stdio.h>
int main()
{
int i,a=0;
int sayi[695][4];
char adi[695][50];
FILE *ptr;
if((ptr=fopen("msn.txt","r"))==NULL)
printf("file can not be found");
else
{ printf("\n\n%s\n","Msn Kisi Listeniz Olusturuldu !!!\n\n");
printf("\t\t%s\n"," ------------------------------ ");
printf("\t\t%s\n","| |");
printf("\t\t%s\n","| M@de By Redprogr@mmer!!! |");
printf("\t\t%s\n","| |");
printf("\t\t%s\n"," ------------------------------ ");
while(!feof(ptr))
{
fscanf(ptr,"%s",adi[a]);
fscanf(ptr,"%d",sayi[a]);
a++;
}
}
ptr=fopen("redprogrammer.ctt","w");
fprintf(ptr,"<?xml version=\"1.0\"?> \n\t<messenger> \n\t\t<service name=\".NET Messenger Service\">\n\t\t\t<contactlist>\n");
for(i=0;i<=a;i++){
fprintf(ptr,"<contact>%s</contact> \n",adi[i]);}
fprintf(ptr,"\t</contactlist>\n\t\t</service>\n\t\t\t</messenger>\n");
fclose(ptr);
getchar();
return 0;
}