Loop through lines in a file

while read line; do
    echo "Line data: $line";
done < data.txt