🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

the "/" character in File path

#2047
From: Yonatan Taub
Date: Mon, 09 Jul 2001 10:07
14 lines
1305 bytes
I'm using a Windows 98 OS.
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.
The other option which requires a bit more typing is concatenating the path
with File.separator.
This would also be platform independent.


Would like to hear your thoughts.
Technical Details
Message-ID: <3b49737f$1_1@dnews>
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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,28072edcddf949c3,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-07-09 02:06:34 PST
From: "Yonatan Taub" <yonatanta@bashan.co.il>
Newsgroups: borland.public.jbuilder.java.api
Subject: the "/" character in File path
Date: Mon, 9 Jul 2001 12:07:01 +0200
Lines: 16
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
NNTP-Posting-Host: 212.179.22.2
Message-ID: <3b49737f$1_1@dnews>
X-Trace: dnews 994669439 212.179.22.2 (9 Jul 2001 02:03:59 -0700)
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