MopMop
0
Q:

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
0

New to Communities?

Join the community