Re: Automatic Notification of a File Change



On Mar 6, 11:25 am, jens_bo...@xxxxxxxxx wrote:
Is there any way to be notified in tcl when a file has changed? I
have a text file that I read into an editbox and I would like the
editbox to update it's contents when the original file has changed. I
was looking into using fileevent, but I am not having much luck with
it. Thank you for any advice in advance.


As far as I know, newer versions of Tcl have not added a facility for
this. You are stuck with polling the file looking if [file mtime]
changes. See http://wiki.tcl.tk/1158 and http://wiki.tcl.tk/9654,
or search this newsgroup archive.

Donald Arseneau asnd@xxxxxxxxx
.