Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading csv  RSS feed

 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i m reading csv file using buffer reader.
I m obtaining each row,but my problem comes when any content (say a word) of csv file contains a character like comma i.e. ","
as i m reading each row through string tokenizer i get more values then expected (though i have handled the condition when any element is null in any row but i failed to handle this), is there any way to avoid this ? plus the word may contain characters like "
My project is running over jdk1.2.
Looking forward to help
Thanks in advance
Varun.
 
Richard Rodger
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a csv parser component:
http://ostermiller.org/utils/CSV.html
[ January 10, 2005: Message edited by: Richard Rodger ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!