Imports the configuration database from filename as strings. Allows non-typed values. (no #, dword: hex:, etc. prefixes) and skips whitespace (tabs and spaces) as in standard .ini and .conf files. Values (to right of equal sign) can be double quote delimited to embed tabs and spaces in the string. Caller must convert string to type.
More...
Imports the configuration database from filename as strings. Allows non-typed values. (no #, dword: hex:, etc. prefixes) and skips whitespace (tabs and spaces) as in standard .ini and .conf files. Values (to right of equal sign) can be double quote delimited to embed tabs and spaces in the string. Caller must convert string to type.
This method allows for lines in the .ini or .conf file like this:
TimeToLive = 100
Delay = FALSE
Flags = FF34
Heading = "ACE - Adaptive Communication Environment"
(note leading whitespace (tabs) in examples below)
SeekIndex = 14
TraceLevel = 6 # Can comment lines like this
Justification = left_justified
The caller can then retrieve the string with the regular
get_string_value() function and convert the string to the
desired data type.
- Todo:
- Strings with embedded newlines cause the import to fail
- Strings with embedded quotes " cause the import to fail
- Importing/exporting for values in the root section does not work
- Add dynamic buffer when importing. currently it will not allow importing of values greater than a fixed amount (4096 bytes)