On 21/03/07, hok kakada <[EMAIL PROTECTED]> wrote: > I just start to use ConfigParser to store the configuration for my > application. [...] > Or i need to write it to the file using conf.write(fp)? > If so, how can I get this file pointer?
Yes. You need to create a file-like object open for writing. To continue your example, you can do this: f = open('test.conf', 'w') conf.write(f) f.close() -- John. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor