;\rvoid main()\r{ FILE *fp;\rchar str[100];\rint i;\rif((fp=fopen(/,test7%w,,))==NULL)\r{ printf(wCannot open the file.'n");\rexit(O);\r)\rprintf(/zlnput a string:");\rgets(str); /*gX52YZ*/\rfor(i=0;str[i]&&i<100;i++) /*
5./\r2Y*/{ if(str[i]>= &&str[i]<= 'z' )/*[\2\r]*/\rstr[i]-=32; /*D[\2]`ab\2]*/\rfputc(str[i],fp); /*D`af/2Y\XGI*/}\rfclose(fp); /* GI */\rfp=fopen( “ t est " %" r" ); /*g?GHGI*/\rfgets(str,100,fp); /*UGI.gX52YZ*/\rprintff <<%s\ nw ,str);.\rfclose(fp);\r)