I am trying to do simple commands to write hello world to a file:
50 complexity:test% python2.7 Python 2.7.3 (default, Feb 11 2013, 12:48:32) [GCC 4.4.6 2012
You need to close the file:
>>> f.close()
Also, I would recommend using the with keyword with opening files:
with
with open("/export/home/vignesh/resres.txt","w") as f: f.write("hello world") f.write("\t".join(["hello","world"]))
It will automatically close them for you.