SCO Visual Tcl Reference Guide
Chapter 2, TclX - the Extended Tcl language

File I/O commands (TCLX)

File I/O commands (TCLX)

These commands extend the stdio-style file I/O capabilities present in Tcl and above. These extensions include searching ASCII-sorted data files, copying files, duplicating file descriptors, control of file access options, retrieving open file status, and creating pipes with the pipe system call. An interface to the select system call is available on UNIX systems that support it.


NOTE: Tcl file I/O is implemented on top of the stdio library. By default, the file is buffered. When communicating to a process through a pipe, a flush(TCL) command should be issued to force the data out. Alternatively, the fcntl(TCLX) command may be used to set the buffering mode of a file to line-buffered or unbuffered.

See the manual pages for the following commands: