OptimizedFileReader.readKeyValuePairs
string[string] readKeyValuePairs(string path, char separator = ':') @safeReads a file and parses it as key-value pairs.
This is optimized for /proc files with key: value format.
Parameters
path | Path to the file to read |
separator | Character that separates keys from values (default: ':') |
Returns
Associative array of key-value pairs
Throws
OptimizationException if the file cannot be read