#include<stdio.h>#include<stdlib.h>int main(){ char ch; FILE * fp; if((fp=fopen("text.txt","w"))==NULL)) { printf("can not open the file!"); exit(0); } ch=getchar(); while(ch!='!') { ch=ch+32; fput(ch,fp); ch=getchar(); } return 0;}