Code Snippets C

#include
int main ()
{
FILE *f;
f = fopen ("myfile.txt","wt");
fprintf (f, "fclose Sample");
fclose (f);
return 0;
}