how to overwritre all text from a text file c# code example Example: how to not overwrite a text file in c# StreamWriter SW = new StreamWriter("Filename.txt", true);