How to save a data of a file into a variable?

My requirement is to read a column data from a file & save it in a variable for each row & process it. I am using the below code-

Leadlines="$TGTFILE/Error.txt">>$log_file
while read line
do
id = ` echo $line | cut -d "," -f1 `
email = ` echo $line | cut -d "," -f2 `
-----------
done

My data looks like-

00PZ00000012QumMAE,abc@hp.com
00PZ00000012OHPMA2,def@hp.com
00PZ00000012MgMMAU,ghi@hp.com
00PZ00000012OHdMAM,jkl@hp.com

Please let me know what is wrong,as my script gets stuck while saving the data in variables.

while read line
do
id=$(echo $line | cut -d "," -f1)
email=$(echo $line | cut -d "," -f2)

echo $id $email
done<file

Try:

while IFS="," read id email
do      -----------
done

I don't know what you are trying to do with:

Leadlines="$TGTFILE/Error.txt">>$log_file

but it yields a syntax error with both ksh and bash. An assignment statement doesn't produce any output.