#include<stdio.h>
#include<conio.h>
void
main()
{
FILE
*fp,*f;
char
str[]= "To write a good program is very time consuming";
int
i;
fp=fopen("old.txt","w");
fputs(str,fp);
f=fopen("new.txt","w");
for(i=strlen(str);0<i;i--)
fputc(str[i],f);
fclose(fp);
fclose(f);
}
ans is wrong
ReplyDelete