How about like this?
set -l %temp $read(wsigtips.txt) msg $chan $gettok(%temp,1,5) write <txt file here> $gettok(%temp,2,5)