C Sharp/C# – Writing to a text file By Malik | May 7, 2011 0 Comment Hi, Use the following example code, if you want to write to a text file using C Sharp/C#. 🙂