Read config before writing to it.