added program

added program which deletes content of file and then asks to enter new
text