Search Delimeted Text file


I am a newbie and here is what I need to do:

Return from a comma delimted file, the value based on the first column and the position column to return back:

Here is what the file looks like:

path, c:\temp\, dev
file, name.txt, test
name, birthDte, prod

So from the example above: If the first value is "file" and position is 2, it should return "test". another example: if the value is "name" and position is 1, it should return "birthDte".

I did some searches and there are some good examples about returning a whole line back, I could not find anything with this criteria.

Can anyone help me?
Topic archived. No new replies allowed.