[Tutor] Reading numbers from a text file

Marc Tompkins marc.tompkins at gmail.com
Wed Jul 10 19:25:02 CEST 2013


On Wed, Jul 10, 2013 at 1:41 AM, Phil <phil_lor at bigpond.com> wrote:

> Thank you for reading this.
>
> Kububtu 13.04 Python 3
>
> I'm attempting to read a configuration file that will restore my program
> to the state that it was in when it was closed. Ideally the config file
> would be human readable.
>
>
Python actually comes with a module for this - it's called "configparser":
http://docs.python.org/2/library/configparser.html

I personally use a module called "configobj" that I find slightly more
powerful / easy to use than configparser:
https://pypi.python.org/pypi/configobj/

Either way, you don't have to re-invent the wheel...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130710/b69ef663/attachment.html>


More information about the Tutor mailing list