Mega Code Archive

 
Categories / C / File
 

Close a stream

#include <stdio.h> int main () {   FILE *f;      f = fopen ("my.txt","wt");      fprintf (f, "fclose example");      fclose (f);      return 0; }