C# StreamWriter

suggest change
using System.IO;

string filename = @"c:\path\to\file.txt";
// 'using' disposes the writer, which flushes and closes the stream.
using (StreamWriter writer = new StreamWriter(filename))
{
    writer.WriteLine("Text to Write");
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents