#include(stdio.h)
#include(stdlib.h)
void main()
{
FILE *fp;
char ch;
if((fp=fopen("C:\Users\Administrator\Desktop\English.doc","w"))=NULL)
{
printf("cannot open file\n");
exit(0);
}
printf("please input string:");
ch=getchar();
while(ch!='#')
{
fputc(ch,fp);
putchar(ch);
ch=getchar();
}
fclose(fp);
}
if((fp=fopen("C:\Users\Administrator\Desktop\English.doc","w"))**==**NULL)