lib_ini_new function library

Dependencies: lib_fn, lib_tools

Description

Functions to interact with ini files. (Probably quite short, since we probably won't write them and once we've read them in we can use array tools.)

Functions here should begin with 'ini_'

Functions

ini_read(backwards:b, flat:b, file:s, path:s, force_case:[upper|lower])=(array:a, section_array:a) action

Read in a file in the 'ini' format. By default, store it in a 2d array (section,key)-> value. If 'flat' is set, instead store it as (key,value), ignoring sections. If 'backwards' is set, swap key and value. if 'force-case' is set, force the key and value into upper or lower case. Also return a k=>_ array 'section_array' of section keys.

Ini entries wrapped in "" will have them stripped.