>file = open('testdb.txt', 'w') Have you tried using open('testdb.txt', 'a')? I believe that will append the new text to the end of the file. Brad