Very sorry, I didn't mention that the code does work, but it overwrites, not append. Editing post now.