title: How to open multiple files using fopen and file pointer?
body: <p>I have a predetermined amount of one-dimensional double arrays and want to write each one of them to a file. For example, if I have 96 arrays, I'd like to have 96 different files containing these arrays.</p>
  
  <p>I'm initializing a file as follows:</p>
  
  <pre><code>FILE * f=fopen("domain001.txt","w");
  ...
  ...
  ...
  fclose(f)
  </code></pre>
  
  <p>I'd like to do this initialization as a "file pointer array". I may have a function, to which I send the number of files to be initialized, such as 96, and the function would initialize 96 text files such as domain001.txt to domain096.txt. How can I do that?</p>
  
  <p>Thank you for any help. </p>