title: writing in file in MPI
body: <p>I've written a program in MPI and I want to execute it under 3 or more cores (or computers) and I want to write some thing in file in each processor, for two cores I've created two different files,but I don't know what should I  do for more cores,is it necessary to create separate file for each processor?if yes, so how should I do it based on my code,and is it different for multi computer ?</p>
  
  <pre><code>    void main()////it is just for 2 cores,what should I do if I use 
  more cores or more computers?
      {
      FILE*fp=fopen("C:\\a.txt","w");
      FILE*fp1=fopen("C:\\b.txt","w");
  
      if(Id==0)
      {
      here I write in "fp"
      }
      else
      {
      here  I write in "fp1"
  
      }
      }
  </code></pre>