Tcl/Tk open and read file


  if { [catch {open $filn r }  f ] } {
    Report 3 "Could not open initialisation file $filn"
    return 0
  }


  set textin [split [ read $f ] "\n"]
  CloseFile $f

posted @ 2011-04-03 21:57  greencolor  阅读(1754)  评论(0编辑  收藏  举报