Skip to content
Advertisement

Tag: csvwriter

Using CSVWriter to write a string array – some with quotes and some without

I see some other questions about CSVWriter writing to files and quotes. But nothing as specific as my issue. I want to print something like: abc,def,ghi,”jkl”,mno,pqr When I just write: what gets printed out is: “abc”,”def”,”ghi”,”jkl”,”mno”,”pqr” So i tried: which gives me: abc,def,ghi,jkl,mno,pqr But I need the quotes on jkl. So I tried something like: which surprisingly gives me: abc,def,ghi,””jkl””,mno,pqr

Advertisement