well by some function i wanted to make it apply to more than one thing
i.e. it could be reading data from a text file or getting data from a hashtable or some other source using a dll
I tried Horstl's suggestion and it is working fine for what I want
Thanks everyone