Has anyone written any code to create or parse CSV files? I saw a post awhile back about some freeware, but I'm not sure I can use that for commercial purposes. (Also, some of the source code was omitted, and unfortunately the classes I needed didn't compile.) From what I've read, Java's StringTokenizer and StreamTokenizer are not really designed to deal with comma-separated flat files. Yes, I can write it myself, but I thought why reinvent the wheel if there is code out there, especially for something as common as handling csv files.
The main problem with using StringTokenizer with CSV files is that the StringTokenizer eats all the tokens that occur next to one another. So, if there are two commas in a row, it basically skips a column.
James Carman, President<br />Carman Consulting, Inc.