Writing contents to file in Python

Source code for writing contents to file in Python

file=open(’2.txt’,'w’)

file.write(’asdasdadas’)

file.close

This entry was posted on Monday, July 28th, 2008 at 2:06 am and is filed under Python. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Post a Comment