Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8043

Re: Diff. between FileWriter("f.txt") and OutputStreamWriter(new FileOutputStream("f.txt")) ?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Diff. between FileWriter("f.txt") and OutputStreamWriter(new FileOutputStream("f.txt")) ?
Date Wed, 14 Sep 2011 18:23:40 -0700
Organization Canadian Mind Products
Lines 16
Message-ID <nqk2771j3jb0arfn1b5deej3jl7q66tb1d@4ax.com> (permalink)
References <4e57267d$0$6552$9b4e6d93@newsspool4.arcor-online.net> <4e65e822$0$14986$426a74cc@news.free.fr>
Reply-To Roedy Green <see_website@mindprod.com.invalid>
NNTP-Posting-Host RCd/Ul4tyxGUBII8WGwa5g.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
X-Notice Filtered by postfilter v. 0.8.2
X-Newsreader Forte Agent 6.00/32.1186
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8043

Show key headers only | View raw


On Tue, 06 Sep 2011 11:34:32 +0200, Mayeul <mayeul.marguet@free.fr>
wrote, quoted or indirectly quoted someone who said :

>
>May I add to other answers, both of them create Writers which will use 
>the environment's default charset.

The Applet at http://mindprod.com/applet/fileio.html will generate you
code to read or write text files, with the default encoding, or with a
selected encoding, using UTF-8, buffered, or unbuffered.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, 
the search for a superior moral justification for selfishness.
~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97) 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

Re: Diff. between FileWriter("f.txt") and OutputStreamWriter(new FileOutputStream("f.txt")) ? Mayeul <mayeul.marguet@free.fr> - 2011-09-06 11:34 +0200
  Re: Diff. between FileWriter("f.txt") and OutputStreamWriter(new FileOutputStream("f.txt")) ? Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 18:23 -0700

csiph-web