title: how to create multiple files with different name using loop in c++?
body: <p>I have to make a program, which gets some information about many students and save that information in different file with different names.</p>
  
  <p>Suppose the program has got all the information about students. now it has to save that information in different files, I am facing problem in changing name</p>
  
  <p>e.g file.open("filename.txt") // This will create only one file in loop</p>
  
  <p>how can file name be changed with every iteration of the loop ?</p>