URL.getFile()
From: RMH (haithem.rahmani_at_st.com)
Date: 06/21/04
- Previous message: Tim Orbaker: "jpwrite: is it even still available?"
- Next in thread: Roedy Green: "Re: URL.getFile()"
- Reply: Roedy Green: "Re: URL.getFile()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jun 2004 08:32:04 -0700
Hi All,
take a look at this piece of code:
.
.
.
URL u=new URL("file:///c:/testit.txt");
File f=new File(u.getFile());
.
.
.
Ok now my question is:
when outputting u.getFile() and f.getName()I got :
u.getFile()=/c:/testit.txt
f.getName()=c:/testit.txt
does someone know by which class the "/" in the beginning u.getFile() is removed?
thanks a lot
Rmh
always coffee
- Previous message: Tim Orbaker: "jpwrite: is it even still available?"
- Next in thread: Roedy Green: "Re: URL.getFile()"
- Reply: Roedy Green: "Re: URL.getFile()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]