Re: Automatic Notification of a File Change
- From: Donald Arseneau <asnd@xxxxxxxxx>
- Date: Thu, 6 Mar 2008 11:41:25 -0800 (PST)
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
.
- Follow-Ups:
- Re: Automatic Notification of a File Change
- From: jens_boxer
- Re: Automatic Notification of a File Change
- References:
- Automatic Notification of a File Change
- From: jens_boxer
- Automatic Notification of a File Change
- Prev by Date: Re: Automatic Notification of a File Change
- Next by Date: Re: vwait behavior
- Previous by thread: Re: Automatic Notification of a File Change
- Next by thread: Re: Automatic Notification of a File Change
- Index(es):