vendredi 29 mai 2015

CSV parser not getting rows from file

Iam parsing a CSV and have the following line that gets the csv lines by splitting the whole file using a newline character.

csvLines = e.target.result.split("\n");

I generated a CSV from excel on a Mac and tried to read it, but iam getting everything in one line as if there is no newline character.

I opened the csv in my text editor and i can see everything is in a separate line.But in my code i just get one row with all the data.

Aucun commentaire:

Enregistrer un commentaire