package require twoArray
?1.0?
two_arrray
load
|save
fileName arrayName ?force?
two_array
takes all of the TCL array(n)
command and the following two additional
commands to load/save an array:
two_array load
fileName arrayName ?force?- Open file fileName and fill array arrayName with the content. If force (a TCL_BOOLEAN value) is set to true then the file is required to exist, or the program will print an error message and exit.
two_array save
fileName arrayName- Save array arrayName to file fileName.
key:value
pairs. key
and value
are taken almost literally
from the array except for some character replacements:
<NL>
- replaced by '
%n
'.:
- replaced by '
%d
'.%
- replaced by '
%p
'.