Csharp/CSharp Tutorial/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();
}
}