Advertisement
ProToTN

Untitled

Jan 15th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. void createFile(FILE * f)
  2. {
  3.     int i;
  4.     char ch[20];
  5.     f=fopen("Mtir.txt","w");
  6.     for(i=0;i<5;i++)
  7.     {
  8.         printf("CH:%d: ",i);
  9.         scanf("%s",&ch);
  10.         fprintf(f,"%s\n",ch);
  11.     }
  12.     fclose(f);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement