while question/help?

I have 3 files in a directory. The files are named as below
MSDOS
PCDOS
filename.txt

The file filename.txt contains the following 1 line

*****DOS

When I run the following while loop I get the following output

while read r
do
echo $r
done < filename.txt

Output is

MSDOS PCDOS

I would have expected the output to be

*****DOS

What am I doing wrong?

If I change the file to contain

"*****DOS" then I get the expected output.

Thanks much in advance.

Use "$r" instead

$ while read r; do echo "$r"; done < filename.txt

//Jadu