Not a duplicate question.
I am using open csv to write csv file.
FileWriter fw= new FileWriter("file.csv");
CSVWriter cw= new CSVWriter(fw);
cw.writeAll(trade);
but the csv file it is creating contains double quotes on all values.
I found a solution to this in this link
CSVWriter cw= new CSVWriter(fw, CSVWriter.NO_QUOTE_CHARACTER);
but the method is depreciated can anyone suggest any alternate solution?
I have got the answer in the javadoc
use this:
FileWriter fw= new FileWriter("file.csv");
CSVWriter cw= new CSVWriter(fw);
cw.writeAll(trade,false); //here false means don't add quotes
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.