File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes how to read a CSV file ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to read a CSV file ?" Watch "how to read a CSV file ?" New topic

how to read a CSV file ?

laxman kadhir

Joined: Jun 14, 2006
Posts: 5
Hi all,

I hav a requirement like converting an excel file into a CSV file and then hav to read their contents ...

Previously i worked on parsing XML file using SAX parser ...but this one really sounds new to me...

Need suggestions and tip from u all...

thanks in advance ...
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Handling CSV involves dealing with a number of special cases, which makes it a bit harder than it would at first appear. The easiest way may be to use an existing library, lik ethe Ostermiller Utils, which are linked on the AccessingFileFormats wiki page.
I agree. Here's the link:
subject: how to read a CSV file ?
It's not a secret anymore!