java - Parsing a CSV file with custom String separator -
i tried parse csv file 2 apis - jsefa , opencsv - problem separator in csv file double tab "\t\t" , apis accept character, not string, separator.
is there other api solve problem, or there s way determine new string separator in jsefa or opencsv?
as last resort could, before parsing, try replace double tab semicolon hoping cleaner way.
there's 101 examples online. googled "java parse csv" , #1 result:
http://www.mkyong.com/java/how-to-read-and-parse-csv-file-in-java/
that uses string separator, code rather api.
given parsing csv file pretty simple process, don't think it's example of situation requiring library , - unique requirement have strange \t\t
separator - better code anyway.
Comments
Post a Comment