I have this script to start out with to get the info for an NFL bot. The only problem is that the lines are too long for a standard variable. If I understand correctly, a binary variable has no size limit. I tried to read about binary variables, but I can't figure out how to use them. I'd appreciate if someone could tell me how to change the small section of this so that it saves to a binary variable and then writes that to a file. Thanks.
on 1:sockopen:nfl:{
echo -a socket opened
sockwrite -n $sockname GET /scores/2005/week1 HTTP/1.1 $+ $crlf $+ host: nfl.com $+ $crlf $+ $crlf
sockwrite -n $sockname Host: nfl.com $+ $crlf $+ $crlf
sockwrite -n $sockname $crlf
}
on 1:sockread:nfl:{
if ($sockerr) {
echo -a Error.
halt
}
else {
var %temptext
sockread %temptext
write nfl.txt %temptext
}
}