error in writing data into file in python .

Posted by mekasperasky on Stack Overflow See other posts from Stack Overflow or by mekasperasky
Published on 2010-05-04T13:21:28Z Indexed on 2010/05/04 13:28 UTC
Read the original article Hit count: 133

Filed under:
 a='aa'
>>> f=open("key.txt","w")


>>> s=str(a)
>>> f.write(s)

and still the key.txt file remains blank .. why?

© Stack Overflow or respective owner

Related posts about python