The last post in that thread told you how to write to the file without first deleting its contents.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
The last post was from someone named Brian Muth, and suggested opening the file with "rb+", which is what you want to do.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343