Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. FILE *f = fopen(filename, "w");
  2. if (f == NULL)
  3. {
  4. printf("Error opening file!\n");
  5. exit(1);
  6. }
  7.  
  8. fprintf(f, text);
  9.  
  10. fclose(f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement