Skip to content
Advertisement

Apache commons csv skip lines

How to skip lines in input file with apache commons csv. In my file first few lines are garbage useful meta-information like date, etc. Can’t find any options for this.

JavaScript

Advertisement

Answer

Use FileReader.readLine() before starting the for-loop.

Your example:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement