fn = ...; writeConfig(cfg,fn) -> 1 line