Creating an empty file in C#
        Posted  
        
            by Paul Hollingsworth
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Paul Hollingsworth
        
        
        
        Published on 2009-04-29T14:14:42Z
        Indexed on 
            2010/03/21
            10:01 UTC
        
        
        Read the original article
        Hit count: 371
        
What's the simplest/canonical way to create an empty file in C#/.Net? Simplest way I can find so far:
System.IO.File.WriteAllLines(filename, new string[0]);
        © Stack Overflow or respective owner