why construct file with "", the path of the file return "/"?
- From: junzhang1983@xxxxxxxxx
- Date: Thu, 28 Feb 2008 19:47:17 -0800 (PST)
l am a little puzzled, why the file's behavior like this:
File fl = new File("","1.txt");
System.out.println(fl.getName());
System.out.println(fl.getParent());
System.out.println(fl.getPath());
System.out.println(fl.getAbsolutePath());
try {
System.out.println(fl.getCanonicalPath());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
.
- Prev by Date: Re: JRC - multiple tables in crystal report
- Next by Date: why construct file with "", the path of the file return "/"?
- Previous by thread: ssl handshake error
- Next by thread: why construct file with "", the path of the file return "/"?
- Index(es):