I need to send the text in the file through a socket. How would you recommend doing it? I was thinking of /loadbuf'ing the file into a hidden custom window and parsing it that way. Any better way?
Example:
Code:
alias loop {
if (!$window(@rservmsg)) { window -h @rservmsg }
loadbuf @rservmsg rserv.txt
var %i = 1
while ($line(@rservmsg,%i)) {
echo -a $replace($ifmatch,$chr(32),$chr(160))
inc %i
}
if ($window(@rservmsg)) { window -c @rservmsg }
}