Question : loop with the files

Hi i need to put the each line in a file in the loop.

ex:

for i in apple grape lemon
do
----
done

I need to pass the apple grape lemon from file a.txt ,means

cat a.txt
apple
grape
lemon

Please help on this

Answer : loop with the files

for i in `cat a.txt`
do
----
done
Random Solutions  
 
programming4us programming4us