Parse CSV Files - TechRepublic
General discussion
April 8, 2002 at 05:30 AM
hifi78

Parse CSV Files

by hifi78 . Updated 24 years, 2 months ago

I’m attempting to find a class that can parse CSV files while maintaing quoted blocks and ignoring Java’s escape characters.

For example:

col1,”col 2″, c:\test.txt

Would output 3 fields:

col1
col 2
c:\test.txt

I was working with theCSV class at ostermiller.org, but it drops the slashes in my path names. Any help would be greatly appreciated.

This discussion is locked

All Comments