You might be better off using an INI file format. That way you can leverage ReadProfileString and WriteProfileString. The ReadProfileString can enumerate the section headings or the keys of a particular section.

If you want to use WriteLine you will be required to manage the whole file in memory and write the whole file after modifying the line.

{edit}
Also when using WriteLine, it only writes what you tell it. You have to include @CRLF to get a new line.

[ 08. September 2002, 05:02: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/