How To Read In A CSV File in JS

I have a CSV file that must be read in to load various aspects of my game. the CSV file has over a 1000 lines and is seperated with “,” and has more than one line. I cant find anything about reading in a csv file in Unity and I am not sure how to go about doing it. Thanks for the help.

I did a Google search of “Unity CSV” and found lots of hits including this CSVReader script in the WIKI:

And many of the other answers had scripts or script fragments as well. If your data is well formatted, and if your quote string are guaranteed to not contain any commas. You can use String.Split()to first split the lines into an array and then use String.Split() on individual lines to break out the values.