Java – The FileWriter class The FileWriter is used to write characters to the file. Declaration class FileWriter extends OutputStreamWriter Constructors for FileWriter (CLICK HERE) Methods inherited by FileWriter (CLICK HERE) Example Output File Writing Successful The text file “demo.txt” is created in the current working dictionary.











