I'm reading csv files using superCSV reader and got the following exception. the file has 80000 lines. As I remove the end lines the exception still happens so there's some line in file that's causing this problem. how do I fix this?
org.supercsv.exception.SuperCsvException: unexpected end of file while reading quoted column beginning on line 80000 and ending on line 80000 context=null at org.supercsv.io.Tokenizer.readColumns(Tokenizer.java:198) at org.supercsv.io.AbstractCsvReader.readRow(AbstractCsvReader.java:179) at org.supercsv.io.CsvListReader.read(CsvListReader.java:69) at csv.filter.CSVFilter.filterFile(CSVFilter.java:400) at csv.filter.CSVFilter.filter(CSVFilter.java:369) at csv.filter.CSVFilter.main(CSVFilter.java:292)
ICsvListReader reader = null; String[] line=null; ListlineList=null; try{ reader = new CsvListReader(new FileReader(inputFile), CsvPreference.STANDARD_PREFERENCE); while((lineList=reader.read())!=null){ line=lineList.toArray(new String[lineList.size()]); } }catch(Exception exp){ exp.printStackTrace(); error=true; }