title: File Input Ouput, reading multiple files in C
body: <p>im trying to do a practice problem from my textbook and im having alot of trouble. Im trying to open files in an range that the user specifies, and doing calculations, moving from file to file. Each file has the following format file05-data-(int 1-99). and the whole file is called practice.exe My main function has the follwing parameters and looks like... say user enters the executable <code>./practice 10 13</code></p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(int argc, char* argv[])
  {
      FILE* newfile;
      int i = argc;
      while (i&lt;arvf[])   */im pretty sure i&lt;arvf doesnt work but how do i capture
                           the range inputed by the user,and open each one?*/
         {
          newfile = fopen(("file05-data-%d.txt",i) "r")
          i = i + 1
         }
  </code></pre>
  
  <p>Im confused on how to take the user input, and opening the files in the range that the user inputed. Any help would be appreciated.</p>