Advertisement
dllbridge

Untitled

Jul 22nd, 2024
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1.  
  2. #include  <stdio.h>
  3.  
  4.  
  5.  
  6. FILE *fp;
  7.  
  8.  
  9.  
  10.  
  11. ////////////////////////////////////////////////////
  12. int main()                                        //
  13. {
  14.        
  15.     fp = fopen("SONY.txt", "w");
  16.    
  17.     if(fp == 0)
  18.     {
  19.        printf("Error open file!\n");
  20.        return 0;
  21.     }    
  22.      
  23.     fprintf(fp, "Privet, Eugeny!");  
  24.    
  25.     fclose(fp);    
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement