Sep-11-2019, 05:46 PM
(Sep-10-2019, 10:42 PM)Axel_Erfurt Wrote: To append data to an existing file use open("filename", "a")
Not working. Now my def animalcheck(): looks like this:
def animalcheck(): animalcheck = Animalcheck.get() saveanimal = open("newanimal.txt", "a") savenanimal.append(namecheck) saveanimal.close()This is the Error, I get:
AttributeError: '_io.TextIOWrapper' object has no attribute 'append'