home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / mac / exsource.old / 9_9.tcl < prev    next >
Text File  |  2003-04-15  |  132b  |  12 lines

  1. #
  2. # Example 9-9
  3. # A read loop using read and split.
  4. #
  5.  
  6. foreach line [split [read $channel] \n] {
  7.     # Process line
  8. }
  9. close $channel
  10.  
  11.  
  12.