## Tcl9.0.3/Tk9.0.3 Documentation > Tcl Commands > fileevent

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

### NAME

fileevent — 通信路が読出し可か書込み可になった時に記述譜を実行する Execute a script when a channel becomes readable or writable

### 構文 SYNOPSIS

fileevent channel readable ?script?

fileevent channel writable ?script?

### 説明 DESCRIPTION

fileevent命令は同じ構文と指示項目に対応しているchan event命令に取って代わられた｡ The fileevent command has been superceded by the chan event command which supports the same syntax and options.

### SEE ALSO

chan
Copyright © 1994 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.
Copyright © 2008 Pat Thoyts