Filenames that are given on the command line
<p>I want to read the file name from command line rather than using <code>file_get_contents("filename.txt");</code> 
command.</p>

<p>I want to read the file from command line and place the output file in the same place(command line) in the form of <code>php myprog.php 1 input.txt output.txt</code>
where <code>input.txt</code> is the input file and <code>output.txt</code> is the output file.</p>

<p>which function can I use in this place?</p>

<p>Need some help.</p>
