From charlesreid1

Revision as of 19:13, 10 June 2017 by Admin (talk | contribs) (Created page with "The Apache Commons library has a Commons-CSV component providing functionality for interfacing with CSV files. Commons-CSV Link: https://commons.apache.org/proper/commons-csv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Apache Commons library has a Commons-CSV component providing functionality for interfacing with CSV files.

Commons-CSV Link: https://commons.apache.org/proper/commons-csv/

Javadocs: https://commons.apache.org/proper/commons-csv/apidocs/index.html

Example:

 File csvData = new File("/path/to/csv");
 CSVParser parser = CSVParser.parse(csvData, CSVFormat.RFC4180);
 for (CSVRecord csvRecord : parser) {
     ...
 }

See Java/Apache Commons for more on that library.