Expect script to read file line by line

I have an expect script which is run inside a bash script. I am trying to ssh to a jump server then from the jump server telnet to each router in a file list and run the same command. I tried many ways but down not read the router list file for some reason.
I get the following error:
wrong # args: should be "read channelId ?numBytes?" or "read ?-nonewline? channelId"
while executing
"read "

/usr/local/bin/expect << EOF
 
### ssh to jump server
spawn /opt/SBCssh/bin/ssh test@192.168.1.254
match_max 100000
expect "*?assword:*"
send "${password}\r"
send "\r"
expect "*$"
 
### read router list file into variable
set fd [open hostlist r] 
set hosts [read $fd] 
close $fd
 
### From jump server telnet to each router in hostlist
set data [split $hosts "\n"]
foreach line $data { 
spawn telnet ${line}
expect "*login: "
send "${username}\r"
expect "Password: "
send "${password}\r"
expect "*#"
send "term len 0\r"
expect "*#"
log_file /tmp/${line}.output
send "show hard\r"
expect "*#"
log_file
send "exit\r"
}
 
### Exit jump server
set timeout 5
send "exit\r"
EOF