General discussion

Locked

Parse CSV Files

By hifi78 ·
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 conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Parse CSV Files

by okujava In reply to Parse CSV Files

have you tried to cubstitute your "\"-chars with "\\"?

Collapse -

Parse CSV Files

by hifi78 In reply to Parse CSV Files

Thanks, but please see comment.

Collapse -

Parse CSV Files

by hifi78 In reply to Parse CSV Files

I do not have control over the format of the CSV file.

Collapse -

Parse CSV Files

by hifi78 In reply to Parse CSV Files

This question was closed by the author

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums