how to create File and write into file in Java
How to create File and write into that using java IO package is used to perform Input/Output operation or file operation . package Name:--> import java.io FileWriter is used to check file is there or not if not it will throw "File not found Exception ". but we can overcome this problem using FileWriter fw = new FileWriter(file.getAbsoluteFile()); if(!file.exists()){ file.createNewFile();//Force to create File with Empty content } File operation will force to progammer to put File operation code inside try catch else throw IO Exception because JVM don't know run time wheather file is avilable on directroy or not .or any other reason that is handle by IO Exception Example :- import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; public class FileOperation {...