How to create a text file in C# ? By Malik | April 23, 2011 4 Comments Hi, How can you create a text file in C# and write to it? Sometimes you may need to create a text file using C sharp program. Here is how you can do that. 🙂