Reading CSV files from java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vineya
    New Member
    • Jan 2008
    • 3

    Reading CSV files from java

    a)Would you help me on how to read CSV files from java?
    b)Is String Tokenizer is one of the option to deal with?
    c)What are the other options other than String Tokenizer ?
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Originally posted by vineya
    a)Would you help me on how to read CSV files from java?
    b)Is String Tokenizer is one of the option to deal with?
    c)What are the other options other than String Tokenizer ?
    If you Google Java CSV This is the first hit: http://sourceforge.net/projects/javacsv/

    Also, Apache Commons doesn't have a solution, but they list three options: http://commons.apache.org/sandbox/csv/

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by vineya
      a)Would you help me on how to read CSV files from java?
      b)Is String Tokenizer is one of the option to deal with?
      c)What are the other options other than String Tokenizer ?
      The API docs is a great place to get information about Java classes.

      MAke sure you also read the part that says

      Originally posted by API docs
      StringTokenizer is a legacy class that is retained for compatibility reasons although its use is discouraged in new code. It is recommended that anyone seeking this functionality use the splitString or the java.util.regex package instead.

      Comment

      Working...