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

  1. #
  2. # Example 21-18
  3. # Storing Data in a Starkit.
  4. #
  5.  
  6. package require starkit
  7. starkit::startup
  8. mk::file open self $argv0
  9. mk::view layout self.audit {action timestamp:I}
  10. mk::row append self.audit "Run as pid [pid]" [clock seconds]
  11. puts "$argv0 has been run [mk::view size self.audit] times"
  12. mk::file close self
  13.  
  14.  
  15.