string text = "blah blah blah\nyak yak yak";
using (StreamWriter outfile = new StreamWriter("c:/dev/out.txt"))
{
outfile.Write(text);
}
Thursday, June 7, 2012
C# Dump to Text File
Subscribe to:
Posts (Atom)
js / python / linux / .NET C# F# / MS-SQL / postgresql / maths / data / logic / thought / SmartCard / EMV / django / HTML
string text = "blah blah blah\nyak yak yak";
using (StreamWriter outfile = new StreamWriter("c:/dev/out.txt"))
{
outfile.Write(text);
}