File.AppendAllText(@"c:pathfile.txt", "text content" + Environment.NewLine);
using(StreamWriter writer = new StreamWriter("C:log.txt", true))
{
writer.WriteLine("Line");
}
File.AppendAllText(@"c:pathfile.txt", "text content" + Environment.NewLine);