Python‎ > ‎

codecs

import codecs

f=codecs.open("test1.html", 'r')
f1=f.read()

w=codecs.open("test2.html", 'w')

w.write(f1)
w.close()

Comments