Configuring a file

As mentioned previously, you may use the fconfigure command to set or get the configuration options for an open channel. The syntax is as follows:

	fconfigure channel name value name value…

If invoked with no option names or values, the fconfigure command will return the configuration options for the channel specified. Optionally, a configuration name may be passed to get the configurations for the option specified. If name and value pairs are passed the file will be configured based on the name/value pairs supplied.

The syntax of acceptable options and their descriptions are as follows:

Option

Description

-blocking boolean

This determines if the I/O operations can result in indefinite blocking. Acceptable values must be ...

Get Tcl/Tk 8.5 Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.