problem using File or URL ....
i completly formatted my computer , before i did the format for instance whenever i instantiate a
File f =new File("testInput.txt");
that worked and i could do ouputstream or what ever but now i have to put the complete path .e.g
File f =new File("c:\\test.txt");
please help...
[428 byte] By [
fouadka] at [2007-10-3 2:47:34]

>> coz putting the complete path reduce java's power of platform independence
no, there is no danger. this phenomenon is completely local to
just you.
File file = new File("file.txt");
Always works. And it always find the file "file.txt" in the working directory.
Try this, print:
new File(".").toAbsolutePath();
And make sure your working directory is what you think it is.