Write text into file named as file.txt using java ? Use Java Filewriter Class.




Program Code :





Output: