Made readConfigOption() function to handle configuration file.