home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / pc / exsource / 9_4.tcl < prev    next >
Text File  |  2003-04-16  |  126b  |  11 lines

  1. #
  2. # Example 9-4
  3. # Opening a file for writing.
  4. #
  5.  
  6. set fileId [open /tmp/foo w 0600]
  7. puts $fileId "Hello, foo!"
  8. close $fileId
  9.  
  10.  
  11.