iscomar001
12/1/2018 - 12:29 AM

CSVUtils

Leer archivo CSV

//https://commons.apache.org/proper/commons-csv/user-guide.html

Reader in = new FileReader("path/to/file.csv");
Iterable<CSVRecord> records = CSVFormat.EXCEL.parse(in);
for (CSVRecord record : records) {
    String lastName = record.get("Last Name");
    String firstName = record.get("First Name");
}