Deleting Files
In this chapter you will learn:
How to delete files
using System;/*from j a va2s.c o m*/
using System.IO;
public class MainClass
{
static void Main(string[] args)
{
FileInfo MyFile = new FileInfo(@"c:\Projects\Testing.txt");
MyFile.Create();
MyFile.Delete();
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » File, Path