FileWriter to write bytes
Hi can I use the FileWriter class to write bytes arrays int a file or its exclusive for text?I used to use the common output streams (DATA and FILE) but for the appending issue I want to use the FileWriter. So, will it write correctly bytes instead of text?
[271 byte] By [
MelGohana] at [2007-11-27 3:59:51]

> Hi can I use the FileWriter class to write bytes
> arrays int a file or its exclusive for text?
For text.
>
> I used to use the common output streams (DATA and
> FILE) but for the appending issue I want to use the
> FileWriter. So, will it write correctly bytes instead
> of text?
Not really!
Are you claiming that FileOutputStream doesn't allow you to open a file in output mode?[url= http://java.sun.com/javase/6/docs/api/java/io/FileOutputStream.html#FileOutputStream(java.io.File,%20boolean)]FileOutputStream(File file, boolean append)[/url]Ahem