Code:
alias joinchans {
  var %c = 1
  while $read(file.txt,n,%c) {
    $+(.timer,join.,$cid,.,$v1) 1 $calc(%c * 2) join $v1
    inc %c
  }
} 


found this script here on the forum, posted not long ago (thx), i guess i can use this to solve the problem, anyway, i'd still like the solution of my question, to learn from wink

Thanx a lot!