title: Passing file arguments to script in Lua
body: <p>I need to read a input file which name I do not know.</p>
  
  <p>I know that in C we can do this:</p>
  
  <pre><code>FILE *Ifile;
  File *Ofile;
  
  int main(int argc, char *argv[]){
  
      // Input and Output files
      Ifile = fopen(argv[1],"r");
      Ofile = fopen(argv[2],"w");
  
    (More code)
  }
  </code></pre>
  
  <p>and then call "<code>./cprogram &lt;any file name&gt;.txt  &lt;any file name&gt;.txt</code>"</p>
  
  <p>Can I do something like this with .Lua scripts?</p>