Thursday, January 22, 2009

C#: Delete File

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