Keep spaces with read command

Hi

The following command read a string from the keyboard & echo it back.
$ read S;echo "$S"
ABCD
ABCD

As you see, the input has space. while it echo back the spaces are removed. Is there a way to keep the input intact and not removing any spaces? Also, the number of spaces may vary.

Thanks

IFS="" read S;echo "$S"

Thanks! It works fine on the prompt. How can I put it in the script. I've a script which reads each line from the input

#!/bin/ksh
{ while read myline
do
echo $myline
done
} < filename

Its working now!

#!/bin/ksh
{ while IFS="";read myline
do
echo $myline
done
} < filename

Thanks a lot