I am using the following code to get contents from a csv file
$.get(file , function(data) {
var lines = data.split('\n');
$.each(lines, function (lineNo, line) {
var items = line.split(',');
// MORE STUFF
});
});
The above code gives me all the lines that are available in my csv file. Here is an example of the data returned
one,0,0,
two,0,0
three,0,0
What i would like is to retrieve only a specific line from the file. for example "two,0,0"
How do i acheive this ?
Thanks