munkygomoo
Programmer
I have a csv file that looks like such :
1010241,400
1010242,200
1010243,300
How do I get JavaScript to read each line of information by itself so it can deal with it properly?
For instance, I want to make it look like this in the end:
data[1] = new dat(1010241,400);
data[2] = new dat(1010242,200);
data[3] = new dat(1010243,300);
Can anyone help me? - JGD -
1010241,400
1010242,200
1010243,300
How do I get JavaScript to read each line of information by itself so it can deal with it properly?
For instance, I want to make it look like this in the end:
data[1] = new dat(1010241,400);
data[2] = new dat(1010242,200);
data[3] = new dat(1010243,300);
Can anyone help me? - JGD -