<div>Hi Simon,</div>  <div> </div>  <div>iam till here:</div>  <div> </div>  <div>dorc=some['DorC']</div>  <div>amount=some['amount']</div>  <div>f=open("logfile.txt", "w")</div>  <div>if dorc =='C':<BR>   a = -(amount)<BR>if dorc == 'D':<BR>   b = amount<BR>   sum=a + b<BR>   if sum == 0:<BR>       f.writelines("name:")<BR>       f.writelines("%s" %some['name'])<BR>       f.writelines("credit:")<BR>       f.writelines("%s" % amount)</div>  <div> </div>  <div>but i see an empty file opened,,,</div>  <div> </div>  <div>kavitha</div>  <div> </div>  <div><B><I>Simon Brunning <simon@brunningonline.net></I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">On 3/8/07, kavitha thankaian
 <KAVITHAPYTHON@YAHOO.CO.IN>wrote:<BR>> can anyone help me???<BR><BR>I'm sure we can. How far have you got so far?<BR><BR>-- <BR>Cheers,<BR>Simon B<BR>simon@brunningonline.net<BR>http://www.brunningonline.net/simon/blog/<BR>GTalk: simon.brunning<BR>MSN: small_values<BR></BLOCKQUOTE><BR><p>
        

        
                <hr size=1></hr> 
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>