URL.getFile()

From: RMH (haithem.rahmani_at_st.com)
Date: 06/21/04

  • Next message: Roedy Green: "Re: URL.getFile()"
    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


  • Next message: Roedy Green: "Re: URL.getFile()"