Skip first line using Open CSV reader

前端 未结 5 1514
离开以前
离开以前 2021-01-04 00:49

Here is the line i am using currently

File booleanTopicFile;
// booleanTopicFile is csv file uploaded from form
CSVReader csvReader = new CSVReader(new Input         


        
5条回答
  •  花落未央
    2021-01-04 01:06

    This constructor of CSVReader class will skip 1st line of the csv while reading the file.

    CSVReader reader = new CSVReader(new FileReader(file), ',', '\'', 1);
    

提交回复
热议问题