> 1. my phone is not rooted
> 2. i have a csv file with 2 columns Name and PhoneNumber
> 3. i want to select the phone number of a particular person from the csv file in tasker.
Option 1.
There have been several posts on how to access contact data with a script, I think this would be the best approach as you would not need to update your csv file., however I can not recall if it required root or not..
Option 2.
It sounds like you have a tab delineated csv file from a contact export, I have not tried to split one of those but (hopefully someone who has may chime in) it should not be to difficult. First, the read file action can only read text files and I am not sure a csv qualifies for that. Second it may be easier if you export to a comma delineated file. I would think you could just copy and paste the contents into a text file or convert it to a text file. There is a Waring in the docs not to try to read a non text file.
Next I would build a separate task to test the splitting action. Start with one action and use the test button in the task edit window.
1. File / read file / : read your text file into global variable %Acontacts (I would use a global variable to start with for testing purposes, this will allow you to view your splits in the variables tab, just be sure to change it back to a local variable after testing)
After running the task check the variable %Acontacts in the variables tab. This should show you what you are trying to split.
Next add (Variable / Variable split ) action. You can not use a "tab" in the variable split action so you need to set a local variable to a "Tab" to be used as a splitter. Now you should have
1. Read file to %Acontacts
2. Variable set %tab to ( just press the tab button in the "To" field..)
3. Variable split %Acontacts ; splitter %tab
Now you can look in the variables tab and see what array has been created and where the info you are looking for is located..
Again, once you get what you want delete all created global variables and just make %Acontacts / %contacts.