fp;\rchar ch,filename [10];\rscanf(u%sn,filename);\rif((fp=fopen(filename,"wH))==NULL)\r{printf(ucannot open file\nu);\rexit(0);)\rch=getchar();\rch=getchar();\rwhile(ch !=*#*)\r{fputc(ch,fp);putchar(ch);\rch=getchar();\r)\rfclose(fp);\r 098]\r?`,+9:;j£9¤¥¦#$)§£9¤eN,+¨\r©“test”ª«\r9:;f¬\r1 . 0@P`\r2 . 0p??`\r#include "stdio.h"\rmain()\r{FILE *fp;\rchar str[l 00J,filenameLl 0];\rint i=0;\rif((fp=fopen(ntest",nwn))==NULL)\r{ printf("cannot open the file\n");\rexit(0);)\rprintf(nplease input a string:\nn);\rgets(str);\rwhile(str!=,i,)\r{ if(str>=,a,&&str<=,z')\rstr=str-32;\rfputc(str,fp);\ri++\n}\rfclose(fp);\rfp=fopen(,,testM,,,r,');\rfgets(str,strlen(str)+ l,fp);\rprintf(n%s\nn,str);\rfclose(fp);.\r}