I'm running netbeans 3.6, basically whenever i attmpt to load or write a file in my project netbeans looks in the netbeans directory instead of the project.
Which means i have to specify the absolute path in the java, which isn't very useful.
Is there a way of specifying the path relative to the netbeans project???
Sorry, i forget to send that one. to read data of any file use File f = new File(getClass().getResource("Abc.txt").getFile());
getClass().getResource() will return a url of that resource like "file:/c:/tempDir/Abc.txt", if u need file url use "getFile()" method it will conver the path as "c:\tempDir\Abc.txt".
All The Best [ March 28, 2005: Message edited by: sasi kala ]