c# overwrite content of txt file with string code example Example: how to not overwrite a text file in c# StreamWriter SW = new StreamWriter("Filename.txt", true);