[Tutor] Reading numbers from a text file
Phil
phil_lor at bigpond.com
Wed Jul 10 23:26:26 CEST 2013
On 11/07/13 03:25, Marc Tompkins wrote:
>
> 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...
>
Thanks Marc, there seems to be a module for almost everything imaginable.
--
Regards,
Phil
More information about the Tutor
mailing list