What’s the simplest/canonical way to create an empty file in C#/.NET?

The simplest way I could find so far is:

System.IO.File.WriteAllLines(filename, new string[0]);

7 Answers
7

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *