Article View: borland.public.jbuilder.java.language
Article #8202Re: I/O in text file!
From: Owen Green
Date: Wed, 11 Apr 2001 15:58
Date: Wed, 11 Apr 2001 15:58
8 lines
1313 bytes
1313 bytes
> > Try using "\n" for a line break, or if you're sure you want a full CRLF
pair
> > use "\r\n". Carriage return on its own won't work, afaik.
>
> If you use System.getProperty("line.seperator") to retrieve the platform's
> newline string, your code will be portable.
Never knew that - cheers for the tip. I have read the API docs all the way
through though, honest <g>.
Technical Details
Message-ID:
<3ad47f3b_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!dispose.news.demon.net!demon!grolier!fr.clara.net!heighliner.fr.clara.net!RENT.THIS.SPACE.FOR.ADVERTISING!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3ad41b66_1@dnews> <3ad41f0d$3_1@dnews> <3ad45543_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,46ce6028d204f886 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-11 09:14:14 PST From: "Owen Green" <owen@norobots.unique.com> Newsgroups: borland.public.jbuilder.java.language References: <3ad41b66_1@dnews> <3ad41f0d$3_1@dnews> <3ad45543_1@dnews> Subject: Re: I/O in text file! Date: Wed, 11 Apr 2001 16:58:49 +0100 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 213.86.7.136 Message-ID: <3ad47f3b_1@dnews> X-Trace: dnews 987004731 213.86.7.136 (11 Apr 2001 08:58:51 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!dispose.news.demon.net!demon!grolier!fr.clara.net!heighliner.fr.clara.net!RENT.THIS.SPACE.FOR.ADVERTISING!newsfeed01.sul.t-online.de!t-online.de!dnews