🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Outputing Text with CR LF

#3220
From: Michael Hall
Date: Thu, 12 Mar 1998 00:00
10 lines
811 bytes
How do I output text to a file that uses DOS linefeeds  CR LF instead of the
UNIX linefeeds.
I tried using an OutputStreamWriter with the constructor that has a file
encoding type. I used System.getProperty("file.encoding"); in hope that it
would recognize that I was on  a PC running windows, but it didn't work.

Replies are much appreciated.

-Michael
Technical Details
Message-ID: <6e881t$cbe6@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,276da222d753057e,start
X-Google-Attributes: gid1089d0,public
From: "Michael Hall" <mhall01@ibm.net>
Subject: Outputing Text with CR LF
Date: 1998/03/12
Message-ID: <6e881t$cbe6@forums.borland.com>
X-Deja-AN: 333269391
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api