程序文字在此#include<stdio.h>
void main()
{
FILE *fpFile;
char szFileName[20];
int c;
printf("please put name of file:\n");
scanf("%s",szFileName);
if((fpFile=fopen(szFileName,"w+"))==NULL)
{
printf("opening file is failing!\n");
exit(0);
}
while((c=fgetc(fpFile))!=EOF)
putchar(c);
fclose(fpFile);
}