ansi c write text to file code example Example: c open a file and write stuff FILE *fopen( const char * filename, const char * mode );