c# system io write at the end of text file code example
Example: c# append to file
File.AppendAllText(@"c:\path\file.txt", "text content" + Environment.NewLine);
File.AppendAllText(@"c:\path\file.txt", "text content" + Environment.NewLine);