delete a file - CSharp File IO

CSharp examples for File IO:File Command

Description

delete a file

Demo Code

using static System.Console;
using static System.IO.Directory;
using static System.IO.Path;
using static System.Environment;
using System.IO;/*w  w  w.j ava 2  s.co  m*/
class Program
{
   static void Main(string[] args)
   {
      File.Delete("textFile");
   }
}

Related Tutorials