FileReader class: FileReader class in java.io is used to read contents of a file. Constructors defined by FileReader class:
where, path is the path name of file and ob is file object.
FileWriter class: FileWriter class in java.io is used to write to a file. Constructors defined by FileWriter class:
FileWriter(String path, boolean append)
FileWriter(File ob, boolean append)
here, if append is true then output is appended to end of file.
CharArrayReader class: CharArrayReader class implements input stream having the source as a charcater array. Constructors defined by CharArrayReader class
CharArrayReader(char array[ ])
CharArrayReader(char array[ ], int start, int nchars)
CharArrayWriter class: CharArrayWriter class implements output stream having the destination as a charcater array. Constructors defined by CharArrayWriter class: