Article View: borland.public.jbuilder.java.api
Article #2058Re: the "/" character in File path
From: Rich Wilkman
Date: Tue, 10 Jul 2001 16:41
Date: Tue, 10 Jul 2001 16:41
31 lines
1875 bytes
1875 bytes
John:
I do the same thing. The *nix convention gets preferential treatment in
so many places that I just use it by default. For display or platform
output I'll always transform to "local conventions".
-Rich
"John McGrath [TeamB]" wrote:
>
> On Mon, 9 Jul 2001 12:07:01 +0200, Yonatan Taub wrote:
>
> > When I create a File instance, I can specify the file it
> > represents by a string such as "c:/folder1/myfile.txt".
> > This will work fine although the actual file separator
> > in the Windows platform is "\".
> >
> > Just wanted to know if such a thing might matter and if
> > anyone encountered problems with that.
>
> I regularly use forward ('/') slashes in Java programs under Windows,
> and have never had a problem with it.
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
> http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3B4B3028.7837992E@formlessvoid.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b49737f$1_1@dnews> <MPG.15b496433607461498a340@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,28072edcddf949c3 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-07-10 09:54:16 PST Message-ID: <3B4B3028.7837992E@formlessvoid.com> Date: Tue, 10 Jul 2001 09:41:12 -0700 From: Rich Wilkman <richw@formlessvoid.com> X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: the "/" character in File path References: <3b49737f$1_1@dnews> <MPG.15b496433607461498a340@forums.borland.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.236.69.60 X-Trace: dnews 994783272 208.236.69.60 (10 Jul 2001 09:41:12 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews