As @Zac notes in the comments, the simplest solution to the question you post is simple cat file.txt, so I have to assume that there is something more interesting, so I put two options that solve the question, how was it asked
: IFS (Internal Field Separator) , read line while
IFS="
"
(while read line ; do
//do something
done) < file.txt