Hi,
Just wonder why you need to do this in xml way?
Wasn't it much simpler if you do it in properties (key value) format?
Most of the time, I just found it people like to overuse xml :-p
Best regards,
MK Tan
On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:
Hi,
Can someone point out a tutorial or some place where I can learn how to
read
values from a .cfg file?
Say I have a Input.cfg file which goes like:
<com>
<MyCompany>
<Common
inputDir="C:/vray/xml_files/"
outputDir="C:/xm_output"
/>
</MyCompany>
</com>
Now, if I need the inputDir value inside my program, how do I do it?
Sorry that this is off topic from struts, but i cant seem to find some
sensible help.
Any help will be appreciated.
Thanks.
Vikas.