Parse CSV: Ignore First Line
Posted: September 8th, 2010, 1:17 pm
I have a script that prompts the user to select a CSV file. The script then parses the CSV into a table. I'm not sure how to tell it to ignore the first line of the table. Here is the script:
Code: Select all
var table = new Array();
var lines = encoded_data.split(/\r*\n/);
for (i = 0; i < lines.length; i++) {
table[i] = lines[i].split(",");
}