variable intialization

I have one file that contain some file path in multiple line.Number of line is not constant.I want to store this multiple path into variables so that i can use this path for later use

file that store path contain multiple line in this way:
line1
line2
line3
.
.
.

i want to store this line into variable in this way

var1=line1
var2=line2
var3=line3
.
.
.
Please tell how I can do that.

Note: that number of line and number of variable is not fixed. I also want to print this variable to confirm their initializations.

Thanks in advance.

n=1
while read val
do
  eval "var$n=\$val"
  n=$(( $n + 1 ))
done < "$file"

something like this :

cou=1
for i in `cat file_name.txt`
do
a[cou]=$i
cou=`expr $cou + 1`
done

Thanks for prompt reply

Pranyam

Thanks for your reply.How to print the array value because i am printing the array value just to confirm initialization.I am doing in this way

echo "$cou: ${a[$cou]}"

but output will be
2:
3:
4:

The while loop is more efficient then the for loop with cat (UUC) and it prevents problems with spaces:

c=1
while read i
do
  a[$c]="$i"
  echo ${a[$c]}
  c=$(( $c + 1 ))
done < file_name.txt

Thanks Franklin.It works.