C# how to update file(leave old data)

Posted by lolalola on Stack Overflow See other posts from Stack Overflow or by lolalola
Published on 2010-05-18T23:37:44Z Indexed on 2010/05/18 23:40 UTC
Read the original article Hit count: 204

Filed under:

Hi, Now I'm writing to a file:

TextWriter tw = new StreamWriter(@"D:/duom.txt");

tw.WriteLine("Text1");

When i writen second time all data delete and write new.

How update data? Leave old data and add new

© Stack Overflow or respective owner

Related posts about c#