Deleting Files : File Delete : File Directory Stream C# Examples


C# Examples » File Directory Stream » File Delete »

 

Deleting Files









    
using  System;
using  System.IO;

public  class  MainClass
{
    static  void  Main(string[]  args)
    {
        FileInfo  MyFile  =  new  FileInfo(@"c:\Projects\Testing.txt");

        MyFile.Create();
        MyFile.Delete();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» File Delete