Defining Files to a java program at runtime
<p>Hello all java newbie here...
I'm writing a java program that has to read from an external text file, (inquiries) and 
then write out the responses to the inquiries to another external text file. </p>

<p>Now the program will not know the path name of the files until run time when the path name 
for both the input and output files will be passed via the arguments parameter. 
The path name will be the same for both files, the actual file names I have defined in two
string variables..e.g.  </p>

<pre><code>final static string RqstFname = "RqstFile.txt" 
final static string RespFname = "RespFile.txt" 
</code></pre>

<p>Now all the examples of File constructor use always have a <strong>hardcoded</strong> <code>path\file_name string</code>. 
can I pass a string variable to the <code>File Contructor</code> ?? </p>

<p>Thanks very much   </p>
