How do I write an array to a text file without overwriting it

This is the code i use to create the text file.

System.IO.File.WriteAllLines(@"C:\Users\****\Desktop\File.txt", array);

How do I append text to an existing file?

Jon Skeet
people
quotationmark

The other answers have shown you how to append a single string to a text file. If you naturally have a collection of lines, however, you probably want File.AppendAllLines:

File.AppendAllLines(@"C:\Users\****\Desktop\File.txt", array);

people

See more on this question at Stackoverflow