Posted By:
owais_ali
Posted On:
Tuesday, September 4, 2001 07:47 PM
i am getting two different result from almost same programs on winnt. program 1. String file = "C:abc.txt" File name = new File(file); if(name.isFile()) System.out.print("it is a file") else System.out.print("file does not exists") its out put is "file does not exists" program 2. i use same code on JSP and get file path through fileDialog box and its output is "it is a file" why two different outputs ?
More>>
i am getting two different result from almost same programs on winnt.
program 1.
String file = "C:abc.txt"
File name = new File(file);
if(name.isFile())
System.out.print("it is a file")
else
System.out.print("file does not exists")
its out put is "file does not exists"
program 2.
i use same code on JSP and get file path through fileDialog box and its output is
"it is a file"
why two different outputs ?
<<Less