🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1963

Re: the "/" character in File path

#1963
From: BrewGuy
Date: Tue, 24 Jul 2001 01:31
27 lines
2106 bytes
You can always figure this out at runtime with

String filesep = System.getProperty("file.separator");

"Rich Wilkman" <richw@formlessvoid.com> wrote in message
news:3B4DCFDA.A13287CB@formlessvoid.com...
> Hi Vlad!
>
> Works fine, unless you are doing what John points out.  At that point,
> however, you've already decided that your code shall be platform
> specific.  You're on your own at that point and you have to take the
> fall for what goes wrong there.
>
> -Rich
>
> Vladimir Patryshev wrote:
> >
> > > I regularly use forward ('/') slashes in Java programs under Windows,
> > > and have never had a problem with it.
> >
> > Until you try to pass the path to a program via Runtime.exec()...
> >
> > --
> > Vlad Patryshev,
> > International Integration Engineer,
> > JBuilder, Borland
> > (831)431 1165
Technical Details
Message-ID: <Ld477.11403$MC1.2133847@news1.elcjn1.sdca.home.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!newshub2.home.com!news.home.com!news1.elcjn1.sdca.home.com.POSTED!not-for-mail
References: <3b49737f$1_1@dnews> <MPG.15b496433607461498a340@forums.borland.com> <3B4CC8F0.D29AAC2D@borland.com> <3B4DCFDA.A13287CB@formlessvoid.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-23 18:31:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!4.1.16.34!cpk-news-hub1.bbnplanet.com!news.gtei.net!newshub2.home.com!news.home.com!news1.elcjn1.sdca.home.com.POSTED!not-for-mail
Reply-To: "BrewGuy" <meadandale@hotmail.com>
From: "BrewGuy" <meadandale@hotmail.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3b49737f$1_1@dnews> <MPG.15b496433607461498a340@forums.borland.com> <3B4CC8F0.D29AAC2D@borland.com> <3B4DCFDA.A13287CB@formlessvoid.com>
Subject: Re: the "/" character in File path
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <Ld477.11403$MC1.2133847@news1.elcjn1.sdca.home.com>
Date: Tue, 24 Jul 2001 01:31:23 GMT
NNTP-Posting-Host: 24.0.149.54
X-Complaints-To: abuse@home.net
X-Trace: news1.elcjn1.sdca.home.com 995938283 24.0.149.54 (Mon, 23 Jul 2001 18:31:23 PDT)
NNTP-Posting-Date: Mon, 23 Jul 2001 18:31:23 PDT
Organization: Excite@Home - The Leader in Broadband http://home.com/faster