Assuming both combos have the corresponding nick-host on the same lines.
To write the items to file using chr
58 "
:" as the seperator.
- .fopen -no cc file.ext
var %i = 1
while $did(dname,id1,%i) {
.fwrite cc $+($v1,:,$did(dname,id2,%i))
inc %i
}
.fclose cc
To read them into the combos
- .fopen cc file.ext
while !$feof {
if $fread(cc) {
tokenize 58 $v1
did -a dname id1 $1
did -a dname id2 $2
}
}
.fclose cc