for example if i want to write data into csv file
FileWriter fw = new FileWriter("C:\\output\\delimited.csv");
fw.write("hi");
fw.write(",");
fw.write("hello");
fw.write(",");
fw.write("working");
fw.flush();
fw.close();
in the above the file is separated by "," as a delimiter. if i want to write a file as "|" as a delimeter. what should be done?
i tried with CsvPreference in java but its didn't fulfilled my requirement.