Help! Adding to file python 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help! Adding to file python 3

Hello! Im trying to create a program that will create a file and will allow to add information to that file. The problem is that .append is not working ('_iO.TextIOWrapper' object has no attribute 'append'). When im trying write it works just fine. I tried .write in 'a' mode and its working as well but it overrides the file which is not what im going for. Google doesnt help :(

14th Apr 2020, 3:55 PM
Justyna
1 Answer
0
Thank you so much! :)
14th Apr 2020, 4:07 PM
Justyna