http://purl.org/tcl/home/man/tcl8.4/TclCmd/fconfigure.htm
See also channel.
Tcl syntax help - Arts and crafts of Tcl-Tk programming - Category Command