read config file line by line