sending content of a file in Expect

How Can I send the content of a file in Expect? Do I have to use cat command in a way? if yes how? lets say my file is called 1.txt.
example:
expect "Enter command to send:" {send "???? \r"} ???? --> content of the file 1.txt

Hi,

have you taught about dinamically building a command-file from the 1.txt file and then passing it to expect?

$ expect -f command_file

see ya
fra
The DejaGnu Testing Framework - Expect: Programmed Dialogue