On second thoughts, this might be a bit more sufficient. It's my first try with File Handling, but I'm sure others who've encountered /fopen and /fclose can point us in the right direction if it's wrong..

Code:
alias test {
  var %x = $+(x,$ticks), %lines
  .fopen %x file.txt
  if ($ferr) { .fclose %x | return }
  if ($fopen(%x)) {
    while (!$feof) {
      %lines = $fread(%x)
      did -a dlg ID %lines
    }
    .fclose %x
  }
}


As for the scroll bar, could you show me the code for you dialog please and thanks? smile

-Andy