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]
# 1

> 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!

sabre150a at 2007-7-12 9:04:25 > top of Java-index,Java Essentials,Java Programming...
# 2
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
DrLaszloJamfa at 2007-7-12 9:04:25 > top of Java-index,Java Essentials,Java Programming...
# 3
Great. I never knew this has the appending option. Thanks a lot.
MelGohana at 2007-7-12 9:04:25 > top of Java-index,Java Essentials,Java Programming...