Hi,
This code snippet will do it:
string fileNameWithPath = @"C:\Data.txt";
using (StreamWriter sw = File.AppendText(fileNameWithPath))
{
sw.WriteLine("Text to be appended");
}
HTH,
APG
msnews.microsoft.com wrote:
Hello.
How can I append line (or lines) to the end of text file?