test this script.
var LF = String.fromCharCode(10);
var CR = String.fromCharCode(13);
var qrt = '"';
var dlmtr = '"' + ',' + '"';
var RET = qrt + LF + qrt;
var rslt = new Array();
var fNm = File.openDialog("select CSV file");
var f = new File(fNm);
if (f.open ('r')){
var myCSV = f.read();
f.close();
myCSV = myCSV.substr(1,myCSV.length-2); //drop first and last quart
var myRows = myCSV.split(RET); //only split real return code
for (i=0;i<myRows.length;i++){
var rslt = new Array();
rslt = myRows.split(dlmtr); //
}
}
You can access result data like
rslt[rows_num][cols_num]