-6

I need to know how to create many empty files and open them simultaneously using a c program.

Dilshad PT
  • 49
  • 4

1 Answers1

0
FILE *fp[n];
for(i=0;i<n;i++)
{
  fp=fopen("filename","mode");

  /*Do What you want with these files....*/

  fclose(fp);
}
rounak
  • 9,217
  • 3
  • 42
  • 59
Rupsingh
  • 1,128
  • 1
  • 18
  • 34