I would like to create a .txt file and write to it, and if the file already exists I just want to append some more lines:
string path = @\"E:\\AppServ\\Examp
Use the correct constructor:
else if (File.Exists(path)) { using(var tw = new StreamWriter(path, true)) { tw.WriteLine("The next line!"); } }