in reply to Re: Re: Reading and *writing* configuration files
in thread Reading and *writing* configuration files
Ah that's kinda the idea. You read in the current file and parse it using a parser module. *You* make your changes to this parsed data set. *You* print out the new file from your munged data set.
One significant problem with retaining comments is that they are only useful if the are relevant. Comments that relate to parts of the file which have been changed are worse than useless.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Reading and *writing* configuration files
by DeathBunny (Sexton) on Apr 10, 2002 at 21:38 UTC | |
by tachyon (Chancellor) on Apr 10, 2002 at 22:39 UTC |