title: How can I make multiple files with a loop?
body: <p>I'm a c language beginner and I'm trying to simulate some physical situation and get some data from it. Right now I can get one data file at once, but I want to improve it by creating several data files at once like</p>
  
  <p>data1.dat
  data2.dat
  data3.dat
  ...</p>
  
  <p>But I can't figure out how to create multiple files with different name with a loop.</p>
  
  <p>Is there a specific way to make multiple files with different name?</p>