How to read a text file and assign the values in the same to a variable in loop

Hi,

I have a text file with multiple lines, each having data in the below format

<DOB>,<ADDRESS>

I have to write a script which reads each line in the text file in loop, assign the values to these variables and do some further processing in it.

Using the following code prints the values but I need them in variables.Also, it reads only first line of the file.
cat filename | paste -d"," - - - | awk 'BEGIN{FS=","}{print "DOB="$1" ADDRESS="$2" }'
Am I wrong in my approach?

duplicate post....

continue here...
http://www.unix.com/unix-advanced-expert-users/161206-how-read-text-file-assign-values-same-variable-loop.html\#post302529252