Open a file: how to use fopen
#include <stdio.h> int main () { FILE *file; file = fopen ("my.txt","wt"); if (file!=NULL) { fputs ("Hiiiiiiiiiiiii",file); fclose (file); } return 0; }