hi..
i want to append a text to a existing file..
that file is in another system..through LAN i want to append text to that file..
how to do that..
its urgent..
regards
To append a text to a file..
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Dec 20, 2008, 2:35 AM EST
string AddedText = new StreamReader(@"C:\file1.txt").ReadToEnd();
System.IO.StreamWriter oWriter = File.AppendText(@"C:\file2.txt");
oWriter.WriteLine(AddedText);
Actually I haven't a LAN installation otherwise I will leverage a compelete code that does that, I can get you a code that I never test it by myself but never the less I invite you to take a look on this article
http://www.codeproject.com/KB/cs/SocketApplication.aspx