On 28/01/2011 00:58, mpnordland wrote:
thanks for explaining what I was doing wrong and how reading the file
works. What would you suggest I do to remedy the situation?
Write the new config out to a new file and then replace the old file
with the new file. I'd use shutil.move(...) to do the rep
thanks for explaining what I was doing wrong and how reading the file
works. What would you suggest I do to remedy the situation?
--
http://mail.python.org/mailman/listinfo/python-list
On 26/01/2011 21:50, mpnordland wrote:
Attached are a config file parser that i'm working on, and a example
config file. Basically, what my problem is is in write_config, it should
search through the file, and replace the lines with whatever the
modified version is, it is also designed to ignore
Attached are a config file parser that i'm working on, and a example
config file. Basically, what my problem is is in write_config, it should
search through the file, and replace the lines with whatever the
modified version is, it is also designed to ignore comments. To see my
problem (which is