FILE

1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int main()

{
  FILE * abc;
  abc = fopen ("dokas.txt","a");
  if (abc!=NULL)
  {
    fclose (abc);
  }
 return 0;
}

This should open a txt file that contain numbers , but I need that when it's opened , 0 should be deleted and new file without 0 saved with other name , but I don't know how to do it.
Last edited on
Topic archived. No new replies allowed.