Writing


#1


#2

open the file in writing mode (w) not appending mode (r+)


#3

thank you..it worked


#4