I\'d like to add new line with text to my date.txt file, but instead of adding it into existing date.txt, app is creating new date.txt file..
TextWriter tw =
No new line:
File.AppendAllText("file.txt", DateTime.Now.ToString());
and then to get a new line after OK:
File.AppendAllText("file.txt", string.Format("{0}{1}", "OK", Environment.NewLine));