This post shows you how to create a simple CSV file with example
package com.candidjava.csv; import java.io.File; import java.io.FileWriter; public class CSVCreate { public static void main(String[] args) { File file=new File("D:/CSVFile/csvcreate.csv"); try { FileWriter writer=new FileWriter(file); System.out.println("File Created successfully"); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } }
File Created successfully