Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

apache csv get headers

CSVFormat csvFileFormat = CSVFormat.DEFAULT.withHeader(FILE_HEADER_MAPPING);
FileReader fileReader = new FileReader("file");
CSVParser csvFileParser = new CSVParser(fileReader, csvFileFormat);
List csvRecords = csvFileParser.getRecords();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #apache #csv #headers
ADD COMMENT
Topic
Name
8+7 =