Writing a single line on a txt document - C#

Hi.

I was wondering if it is possible to write a single line in a text document using
System.IO.File.WriteAllText(“C:\blahblah_yourfilepath\yourtextfile.txt”, “This is text that goes into the text file”);

This is what I’ve been using so far, but is it possible to NOT overwrite when writing? Or only iverwrite one line and keep the others the way they were?

If you don’t want to overwrite anything, use “System.IO.File.AppendAllText” instead of “System.IO.File.WriteAllText”. AppendAllText adds the text to the end of the file.

http://msdn.microsoft.com/en-us/library/ms143356.aspx