save received config in a local file
open config files in write mode