here it is
sed 's/\(.*\)/"\1"/g'
shorter
sed 's/.*/"&"/'
without spaces
sed 's/ *\(.*\) *$/"\1"/'
skip empty lines
sed '/^ *$/d;s/.*/"&"/'
You almost got it right. Try this slightly modified version:
sed 's/^.*$/"&"/g' file.txt