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")) ?

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 2011-09-14 18:23 -0700
Organization Canadian Mind Products
Message-ID <nqk2771j3jb0arfn1b5deej3jl7q66tb1d@4ax.com> (permalink)
References <4e57267d$0$6552$9b4e6d93@newsspool4.arcor-online.net> <4e65e822$0$14986$426a74cc@news.free.fr>

Show all headers | 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