Read .txt file like .py file

2008-07-27 Thread King
I have a text file and contents are: Help= Code is written by xteam. value = 0.0 How do I read this file like python syntax. What I mean is first readline operation should return complete declaration of 'Help' variable. If I evaluate this string then it should create a 'Help' variable with

Re: Read .txt file like .py file

2008-07-27 Thread Stefan Behnel
King wrote: I have a text file and contents are: Help= Code is written by xteam. value = 0.0 How do I read this file like python syntax. What I mean is first readline operation should return complete declaration of 'Help' variable. If I evaluate this string then it should create a