Advertisement
Beyrin

Save into file C

Jun 1st, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     char TestMas[10] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
  7.     FILE *MasTest = fopen("LetsTestTheseMas.txt", "w+a");
  8.     char i='7';
  9.  
  10.         putc(i,MasTest );
  11.  
  12.     putc('\n', MasTest);
  13.     fclose(MasTest);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement