Lemme explain exactly what am doing. Its pretty simple.
String^ file_name = "c:\\test.t xt";
StreamWriter^ sw = gcnew StreamWriter(fi le_name);
sw->WriteLine("Hel lo");
When I do this, everytime I run this program, the existing file is opened by erasing its contents. How can I avoid this, so that I can append this new text to EOF (End Of File) everytime?
String^ file_name = "c:\\test.t xt";
StreamWriter^ sw = gcnew StreamWriter(fi le_name);
sw->WriteLine("Hel lo");
When I do this, everytime I run this program, the existing file is opened by erasing its contents. How can I avoid this, so that I can append this new text to EOF (End Of File) everytime?
Comment