Handbook
Glossary
read-ini ( -- assoc )
Vocabulary
ini-file
Inputs
None
Outputs
assoc
an
assoc
Word description
Reads and parses an INI configuration from the
input-stream
and returns the result as a nested
hashtable
.
Definition
USING:
hashtables
ini-file.private
io
make
namespaces
;
IN:
ini-file
:
read-ini
( -- assoc )
section
off
option
off
[
[
parse-line
]
each-line
section,
]
{
}
make
>hashtable
;