as far as I am aware WriteFile will create a new file and you can't append to an existing file with it. You could loop through your list and use FileAppend or read the contents of your file into the list first and then write it back together with your other list values.