NAME
inifile -
Parsing of Windows INI files
SYNOPSIS
package require Tcl package require inifile ? 0.1 ? ::ini::open file ? mode ? ::ini::close ini ::ini::commit ini ::ini::sections ini ::ini::keys ini section ::ini::get ini section ::ini::exists ini section ? key ? ::ini::value ini section key ::ini::set ini section key value ::ini::delete ini section ? key ?
DESCRIPTION
This package provides an interface for easy manipulation of Windows INI files.
-
::ini::open
file ? mode ?
- Opens an INI file and returns a handle that is used by other commands. Mode has the same types as the open command. The default mode is r+. ::ini::close ini
- Close the specified handle. If any changes were made and not written by commit they are lost. ::ini::commit ini
- Writes the file and all changes to disk. ::ini::sections ini
- Returns a list of all the names of the existing sections in the file handle specified. ::ini::keys ini section
- Returns a list of all they key names in the section and file specified. ::ini::get ini section
- Returns a list of key value pairs that exist in the section and file specified. ::ini::exists ini section ? key ?
- Returns a boolean value indicating the existance of the specified section as a whole or the specified key within that section. ::ini::value ini section key
- Returns the value of the named key from the specified section. ::ini::set