Write a program to write the text into the file, named as file.txt using java ? Filewriter Class The following code will help you to write some text into the file using FileWriter Class. Learn more