/* http://www.binefa.net To implement a program generator of "trial.txt" file. The program should write a string in the file. */ #include #include void main(){ FILE *f; clrscr(); if((f=fopen("trial.txt","w")) == NULL) printf("\nI can't write the file\n"); else{ fprintf(f,"This is a trial\nBye"); printf("\nIt's written trial.txt successfully\n"); fclose(f); } getch(); }