Write out CSV with double quote in some column in java2
$20 USD
ชำระเงินเมื่อจัดส่ง
I have the following code that when writing csv will split csvbody by comma,
CSVWriter writer = new CSVWriter(new FileWriter(datasheet),
CSVWriter.DEFAULT_SEPARATOR,CSVWriter.NO_QUOTE_CHARACTER);
[login to view URL](csvBody);
but my csvBody which is a List<String[]> looks like
"a","b","c", "e,f,g"
so after splitting, "e,f,g" will be split into three columns without double quote surrounds them, the result will be a,b,c,e,f,g
After write to CSV file I want this kind of format a,b,c,"e,f,g".
หมายเลขโปรเจค: #16892079
เกี่ยวกับโปรเจกต์
มอบให้กับ:
Sir, I have gone through your project description and am looking to provide my service for java work. For more than 7 years I’ve worked in this field.
freelancer 11 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $24
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 400 projects and over 700 hours doing java projects. plus i passed freelancer java v3 exam with score 3.75 plus i got 2 java certificate 1Z0-803 an เพิ่มเติม
Before accepting, I would like to clarify: would it be possible to use commons csv instead of opencsv?
I am working in Java since 20 years. I work for a big company and I can help you without problem. Choose me for this works! Thanks, have a good day