Writing to a Text File with C#

C# offers class TextWriter.

TextWriter tw = new StreamWriter("mytextfile.txt");
tw.WriteLine("my data");
tw.Close();
Categories: C# Tags: , , , ,
%d bloggers like this: