#include <stdio.h>
#include <process.h>
void main(){
FILE *fp;
int i=88;
char filename[30];
printf("please input filename:\n");
scanf("%s",filename);
if((fp=fopen(filename,"w"))==NULL){
printf("can not open file:\npress any key to continue:\n");
getchar();
exit(0);
}
fprintf(fp,"%c",i);
fclose(fp);
}