Hello friends
I tried to construct file object specifying path for a file on the local disk as well as using a file on the floppy drive as follows. It gives problem when I construct new File with path of the file on floppy disk.
File f1 = new File( " c:\\jdk1.3\\bin\\test);
it compiles & gives result for all File class methods like exists(), canWrite(), canRead() etc.
but when i do
File f2 = new File ( " A:\\javaranchquestion "); // this file is there on my floppy drive.
it compiles but returns false for exists(), canRead(), canWrite() methods
My question is
Is it that the File object will be created only with "path" pointing to the existing file on the local drive?