how to append text to a text file in c# code example
Example: c# append text to file
File.AppendAllText(@"c:\path\file.txt", "text content" + Environment.NewLine);
File.AppendAllText(@"c:\path\file.txt", "text content" + Environment.NewLine);