#include<stdio.h>
#include<stdlib.h>
int main()
{
FILE *fp;
int ch;
if((fp=fopen("g://t1.txt","w"))==NULL)
{
printf("connot open this file/n");
exit(1);
}
while((ch=getchar())!='/n')
fputc(ch,fp);
fclose(fp);
if((fp=fopen("g://t1.txt","r"))==NULL)
{
printf("connot open this file/n");
exit(1);
}
while((ch=fgetc(fp))!=EOF)
putchar(ch);
return 0;
}