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:
String path=new File("XML/TableNamesAndColumnNames.xml").getAbsolutePath();
but it is giving no file found .. because I am getting the path like -
"C:\Documents and Settings\rajesh\My Documents\NetBeansProjects\ReportOfReuls\XML\TableNamesAndColumnNames.xml"
but if I use reverse slash i.e:
"C:/Documents and Settings/rajesh/MyDocuments/NetBeansProjects/ReportOfReuls/web/XML/TableNamesAndColumnNames.xml"
I am getting the file.. Is the problem of Net Beans or windows ..
please any one suggest how to resolve this problem
Thanks in Advance. Raj