tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Madhava Reddy <Madhava_Re...@icon-scm.com>
Subject RE: on File.separator (was: How do I get the absolute path ...)
Date Mon, 20 Jan 2003 12:36:54 GMT


-----Original Message-----
From: Holger Klawitter [mailto:lists@klawitter.de]
Sent: Monday, January 20, 2003 1:26 PM
To: Tomcat Users List
Subject: OT: on File.separator (was: How do I get the absolute path ...)


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.
thanks.. good to know.

> 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? ;-)

ofcourse..

thanks
Madhava Reddy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message