in reply to Re: Re: Re: Reading and *writing* configuration files
in thread Reading and *writing* configuration files
What I'm looking for is tip on writing a new, updated, config file back out.
Maybe some more information would help. I'm currently writing a fresh new config (with no comments or formatting etc preserved from the original) to a temp file. Then I copy the old file to a .bak extension and copy the temp file over the /etc/named.conf file.
So far so good. But I posted this query in the hopes that with all the massive knowledge and experience that the combined readers of PerlMonks have, that someone will have either tips on ways to improve this procedure or warning about things I might be doing badly.
Maybe I should have been more clear in my initial post. Still, there have been some pretty good suggestions posted here and I definately feel more confident of what direction I should go in.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Reading and *writing* configuration files
by tachyon (Chancellor) on Apr 10, 2002 at 22:39 UTC |