bash: read file line by line

on
while read line
do
  #do something with the line variable, echo it for instance
  echo ${line}
done < "file.txt"