#include <stdio.h> #include <string.h> #include <math.h> void main() { FILE *fo; char str[]="*quit yes"; fo=fopen("t.proc","w+"); if (!fo) { printf("can't open file t.proc"); } fprintf(fo,"%s",str); fclose(fo); }