This function reads a key-value file to a structure. If possible, the values are converted to numbers, otherwise the value is kept as string.
Input:
Output: