This is my code. Each time I run the program, all it does is create a new "db.txt" file and overwrites the previous one, and all the information is deleted and the new one is entered.
I want to know how to just change line (\n or something) and add to the db.txt the new data.