Friday 5th January 2018




                                                     Reading and writing txt file:


Using this function you are going to create a document of your choice using python. Therefore it is going to save itself in your documents. In order to do this you have to save your IDLE page as the name of the document that you want to create, for example "My document".








Now using this code you would be able to read instead of writing it like the last one. This is because of the "w" on the second line. Therefore you can open and read it instead of writing it.

Comments