Import text file

Franck Y franck110 at gmail.com
Thu Jun 5 12:28:35 EDT 2008


Hello,

I have a text file where there is

xxx=value
yyy=value
zzz=value
etc...

I would like use the from myfile import xxxx

Since it has not the extension py how can i read it ?
I know the way to do it with the open file but i think this one is
easier...
Thansk

Franck



More information about the Python-list mailing list