using scanner to read config.ini