Instaed of using WriteLine() with flat text files, you should use WriteProfileString() with INI files. That will let you add remove or update individual lines.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.