Hai,

> >     java.io.File dir1 = new java.io.File ("..\\"); // line 1
> new java.io.File( ".." + File.separator ) would be a somewhat cleaner.
> more over, we can use suitabe seperators depending on the operating system.

File.separator already gives you the Separator for the current OS.

> I guess for Unix system this must be a forward slash "/". I'm not sure
> whether its "/" or "//"

You know why you have to type "\\" instead of "\" in Java, don't you? ;-)

Regards,
        Holger


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to