RE: PYTHON PROGRAMMING EXERCISES 5: FILE HANDLING (WRITING TO A FILE)

avatar

You are viewing a single comment's thread:

Thanks for the python posts, they really are useful. I have a quick question, it seems this always appends the text to the end of the file, what if you wanted to override the text that is already there? do you open the file differently? or is it a different command?



0
0
0.000
1 comments
avatar

I am not appending. I am creating a new text file each time i.e. it will override the existing text. This post is for the same as you say :)

0
0
0.000