Please always use the code button. Since you are new, I have edited your post and you can see how much better it looks. Also always use spaces for indentation, not tabs.
Joined: Feb 02, 2009
Something's still missing in there. You're reading an entire line with the BufferedReader.readLine(). This method does not add extra quotes. Print out the input line after reading it, it should look exactly like in the .csv file.
Then you split the line. That method also doesn't add quotes. Print out each token, you should get two tokens:
1) My Name is
2) "My ""Pet"" Name is"
Then you write the tokens. FileWriter also doesn't add quotes. Note that you are writing a comma after each token, that should appear in your output as well (also after the last token!)...it doesn't, so either you're using another method than you think you do, or something else is amiss here.
Joined: Apr 13, 2011
Hi I still Have same problem
I have attached csv file
following code used to display the output but still getting same output.
Joined: Mar 22, 2005
I'm not following; are you saying that this piece of code produces different output than you get if you open the file in a text editor (NOT a spreadsheet application)?