This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to parse a csv file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to parse a csv file" Watch "how to parse a csv file" New topic
Author

how to parse a csv file

kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
I'd like some help with parsing a csv file to put the info into a database. I have some crude way of doing this using StringTokenizer and then persisting the fragments one by one. I was wondering if there is a more elegant way to do this, since my technique might lead to corrupted data.

Thanks.


Who dares, wins! (SAS motto)
kwame Iwegbue
Ranch Hand

Joined: Sep 02, 2000
Posts: 197
I think I've found the solution.
Someone had a similar issue on this forum, and they are using
Ostermiller utils

I'm going to give it a shot.
[ August 22, 2007: Message edited by: kwame Iwegbue ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to parse a csv file
 
Similar Threads
Parsing pipe delimitated text file suing ExcelCSVParser
display csv file as an excel in java
Can POI read CSV files
How to export data in excel
Upload a csv file on JSP, validate the content and then perform query.