Advertisement
Guest User

Write to file

a guest
Sep 14th, 2016
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. void main(void){
  4.  
  5.     FILE *file_to_write;
  6.  
  7.     file_to_write = fopen("only_one.txt","w");
  8.     fputs("There is no god but ALLAH swt\n", file_to_write);
  9.     fclose(file_to_write);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement