• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

how to parse a csv file

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
kwame Iwegbue
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic