How can I correctly parse CSV ( comma separated values ) files? StringTokenizer doesn't seem to fit many conditions.
Joe Sam Shirah Ian Darwin has two classes ( CSV.java and CSVRE.java ) to handle CSV files in his Java Cookbook, including a way with regular expressions. You can download the code from his site, probably best to do so from the examples by chapter ( see Chapter 3, "Strings and Things" ) page. Not a bad idea to buy the book, either.