write <file> $nick. $address($1,1)
$1 is the nickname then when u go to write it into the boxes $gettok it to devide it :P
eg:
$gettok$read(<file>, <line>), 1, $asc(.))
the above line will return you the nick name to get the address just change the 1 to a 2 and that will give the address
heres some sample code to aid you:
alias tie {
write nickAdd.txt $1 $+ . $address($1, 1)
echo Wrote address
}
on *:somedialog:init:*: {
var %a = 1
while (%a <= $lines(nickAdd.txt)) {
did -a $dname <id> $gettok($read(nickAdd.txt, %a), 1, $asc(.))
did -a $dname <other id> $gettok($read(nickAdd.txt, %a), 2, $asc(.))
}
}
i think that might help you to some exstant :P