0

Files

https://code.sololearn.com/c86p4fsdXsX7/?ref=app How would you remove a animal in list that has been written to a txt file, so when you look at the file the animal is no longer there

13th Mar 2019, 7:17 PM
farhan bhatti
farhan bhatti - avatar
5 Réponses
+ 3
hi farhan, can you please describe a little bit more what your program is doing and what it is not doing. It would also be great if you support us with a piece of code that creates your file so that we can go in depth? thanks lothar
13th Mar 2019, 8:16 PM
Lothar
Lothar - avatar
+ 3
OK, I come back tomorrow to you. Will preare a step by step guide for you.
14th Mar 2019, 8:24 PM
Lothar
Lothar - avatar
+ 3
hi farhan, basic tutorial is ready. I used your ‘animal’ list to do it. It is not a ‘ready-to-use’ program but tasks are coded. What you have to do is the structure and so on. Hope it helps. Happy coding! https://code.sololearn.com/cESZeFlM1cRR/?ref=app
15th Mar 2019, 6:27 PM
Lothar
Lothar - avatar
0
right now the program can write the stings to the file and pompt the use with a question of what animal they want to remove. my program doesnot remove the string entered by the user from the file, instead all the animals remain in the file.
13th Mar 2019, 8:25 PM
farhan bhatti
farhan bhatti - avatar
0
thanks lothar, hopefully this will help me fix my code
16th Mar 2019, 12:57 PM
farhan bhatti
farhan bhatti - avatar