open and read a file content to a variable

set l_file_handle [::open $a_file r]
 set content [::read $l_file_handle]
 ::close $l_file_handle

posted @ 2011-08-12 13:12  greencolor  阅读(165)  评论(0编辑  收藏  举报