streamreader overwrites my textfile but i want to update code example
Example: streamreader overwrites my textfile but i want to update
string file = File.ReadAllText(@".\path\to\file.txt");
file = file + "Some string I'm adding to my file";
File.WriteAllText(@".\path\to\file.txt", file); // note this overwrites the file