M Mike P Sep 3, 2004 #1 Does anybody have a simple example of appending text to a text file? Cheers, Mike
D Dennis Myrén Sep 3, 2004 #2 using System.IO; StreamWriter sw = new StreamWriter("C:\\MyFile.txt", true); sw.Write("Hej."); sw.Close();
using System.IO; StreamWriter sw = new StreamWriter("C:\\MyFile.txt", true); sw.Write("Hej."); sw.Close();
M Mike P Sep 3, 2004 #3 Thanks Dennis. I found a good example of writing and appending here which is very similar to your example : http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=5 Cheers, Mike
Thanks Dennis. I found a good example of writing and appending here which is very similar to your example : http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=5 Cheers, Mike
S Shiva Sep 3, 2004 #4 MSDN sample @ http://msdn.microsoft.com/library/d...guide/html/cpconopeningappendingtologfile.asp Does anybody have a simple example of appending text to a text file? Cheers, Mike
MSDN sample @ http://msdn.microsoft.com/library/d...guide/html/cpconopeningappendingtologfile.asp Does anybody have a simple example of appending text to a text file? Cheers, Mike