#include <stdio.h> int main (){ FILE * MyFile; MyFile = fopen ("myfile.txt","w"); if (MyFile!=NULL) { fputs ("Writing to a file using 'fopen' example.",MyFile); fclose (MyFile); } return 0;}