path problem in java
<p>I am using net beans for developing my application in windows environment .. I have a xml file in XML folder (under web pages folder) . I am using the following code to read the xml file: </p>

<pre><code>String path=new File("XML/TableNamesAndColumnNames.xml").getAbsolutePath();
</code></pre>

<p>but it is giving no file found .. because I am getting the path like - </p>

<pre><code>"C:\Documents and Settings\rajesh\My Documents\NetBeansProjects\ReportOfReuls\XML\TableNamesAndColumnNames.xml"
</code></pre>

<p>but if I use reverse slash i.e: </p>

<pre><code>"C:/Documents and Settings/rajesh/MyDocuments/NetBeansProjects/ReportOfReuls/web/XML/TableNamesAndColumnNames.xml" 
</code></pre>

<p>I am getting the file..  Is the problem of Net Beans or windows ..</p>

<p>please any one suggest how to resolve this problem </p>

<p>Thanks in Advance.
Raj</p>
