#!/usr/bin/python
filename = "test.txt"
print "Writing to file: %s" % filename
file = open(filename, 'w')
file.write("This is the new content of test.txt <img src='http://www.snippetsmania.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> ")
file.close()
Write to file
Leave a Reply
You must be logged in to post a comment.