File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes ignoring comma in CSVWriter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

ignoring comma in CSVWriter

Raza Mohd
Ranch Hand

Joined: Jan 20, 2010
Posts: 247

can anybody give me solution that i want my CSV file with no Quote character.

and i using Final field NO_QUOTE_CHAR

and i want to write a field which is having Comma in it.

for example ::

cvv number ('Q','C')
card number

please help me..

i stuck for a long time.

Good luck!!
A small leak can sink a Gigantic ship.>
Raza Mohd
Ranch Hand

Joined: Jan 20, 2010
Posts: 247

I tried a lot But no solution.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Not sure I understand this question. What format do you want and what are you getting?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Joanne Neal

Joined: Aug 05, 2005
Posts: 3446
As I told you here, you can't have values with commas in them in a CSV file unless you put those values in quotes. If you don't want the values in quotes then you can't use a CSV file to store them - you will have to use some other format.

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14103

Why start a new topic about the same issue? Please continue in your old topic.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
I agree. Here's the link:
subject: ignoring comma in CSVWriter