How to specify the line break character for CSVreader in java

  • text qualifier : ” (Double quotes)
  • delimeter : ,(comma)

file data :

1st row -> cvhjczxjc,”dasdsad,sdasd
2nd row -> “sree”,”test”,”vczxnvn”

While I am trying to read data all rows treated as single row due to non-terminated text qualifier.Actual second row is valid data.

Please guide us to solve this.

Code :

CSVReader csvReader = new CSVReader(new BufferedReader(new InputStreamReader(new FileInputStream(f),Charset.forName("utf-8"))), ',','"');
while((csvDataLine = csvReader.readNext()) != null) {
            for (String str :csvDataLine){

text file:enter link description here