title: inserting int variable in file name
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5590381/easiest-way-to-convert-int-to-string-in-c">Easiest way to convert int to string in C++</a>  </p>
  </blockquote>
  
  
  
  <p>How can I insert int variable while creating .vtk file? I want to create file at every k step.
  i.e. so there should be series of files, starting from file_no_1.vtk, file_no_2.vtk, ... to file_no_49.vtk .</p>
  
  <pre><code>while(k&lt;50){
    ifstream myfile;
  
    myfile.open("file_no_.vtk");
  
    myfile.close();
  
    k++;
  }
  </code></pre>