'''file channels''' ''?pattern?'' If ''pattern'' isn't specified, returns a list of names of all registered open channels in this interpreter. If ''pattern'' is specified, only those names matching pattern are returned. Matching is determined using the same rules as for '''[string match]'''. ---- This should really be '''channel names''' ''?pattern?'' since it returns more than just files: also sockets, stdin, stdout, etc). ---- See also: * [file] * [open] * [socket] ---- [Tcl syntax help] - [Category Command] - [Category Introspection] - [Changes in Tcl/Tk 8.3]