Search this blog

Wednesday, June 3, 2009

Delete File thru C#

following C# code helps you to delete a file.

// Include the following namespace:

using System;

using System.IO;

// To delete a file, follow this format

File.Delete("c:\\file.txt");

No comments:

Post a Comment