data = open('d://gogle.html','r') texts = data.read() data.close() text = texts.replace('w','!') data1 = open('d://gogle1.html','w') data1.write(str(text)) data1.close() print 'programm win'