#include<stdio.h> int main() { FILE *fp; char ch; if((fp=fopen("tense","wt"))==NULL) { printf("cannot open file\n"); getch(); exit(1); } printf("input sybol:"); while(ch=getchar()!='\n') fputc(ch,fp); fclose(fp); getch(); return 0; }