Sunanda October 2003
A Windows ini file has this structure:
[section-name1] keyword1=somevalue keyword2=someothervalue [section-name2] keyword3=yetanothervalue
There may be many sections, and each will have zero or more keywords.
The two functions in this script are:
Takes a whole ini file and converts it to a REBOL hash structure:
["section-name" ["keyword1" "somevalue" "keyword2" ...] ...]
Return a value from an ini file. Returns false if the section and keyword do not exist.
ini: parse-ini-file %/c/windows/win.ini print find-in-ini ini "ports" "com1:" print find-in-ini ini "intl" "iCountry" print find-in-ini ini "truetype" "FontSmoothing" print find-in-ini ini "xxx" "xxxx"