Java Bytearrayoutputstream
Java Bytearrayoutputstream
http://www.tuto rialspo int.co m/java/java_file write r_class.htm Co pyrig ht © tuto rials po int.co m
T his class inherits from the OutputStreamWriter class. T he class is used for writing streams of characters.
FileWriter(File file)
FileWriter(FileDescriptor fd)
FileWriter(String fileName)
Following syntax creates a FileWriter object g iven a file name with a boolean indicating whether or not to append
the data written.
Once you have FileWriter object in hand, then there is a list of helper methods, which can be used manipulate the
files.
Example:
Following is the example to demonstrate class:
import java.io.*;
This
is
an
example