Hi,
I have a comma separated file, whose contents look something like:
12,X
35,0
79,2
993,0
995,9
996,8
1007,1
1008,0
1010,6
I need to load an array with the contents of the second field, with the array index being the first field (e.g. so I can look up 12 to find X).
I'm not sure how to do this with a CSV file. Can anybody help?
Cheers
I have a comma separated file, whose contents look something like:
12,X
35,0
79,2
993,0
995,9
996,8
1007,1
1008,0
1010,6
I need to load an array with the contents of the second field, with the array index being the first field (e.g. so I can look up 12 to find X).
I'm not sure how to do this with a CSV file. Can anybody help?
Cheers