Thursday, June 7, 2012

C# Dump to Text File


string text = "blah blah blah\nyak yak yak";

using (StreamWriter outfile = new StreamWriter("c:/dev/out.txt"))
{
    outfile.Write(text);
}

No comments:

Post a Comment

comment: