Re: Import text file

2008-06-05 Thread alex23
On Jun 6, 2:28 am, Franck Y <[EMAIL PROTECTED]> wrote: > I have a text file where there is > > xxx=value > yyy=value > zzz=value > etc... > > I would like use the from myfile import > > 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 thi

Import text file

2008-06-05 Thread Franck Y
Hello, I have a text file where there is xxx=value yyy=value zzz=value etc... I would like use the from myfile import 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 -- http://mail.python.org/