C# provides file utility as File Class. You don't need to create instance, because it's already created when you declare System.IO on top of your code.
Following is the example to Delete File.
using System.IO;
.
.
.
File.Delete("c:\\_bg.png");
File.Delete("c:\\_gloss.png");
File.Delete("c:\\_outline_shadow.png");
.
.
.
File.Delete("c:\\_bg.png");
File.Delete("c:\\_gloss.png");
File.Delete("c:\\_outline_shadow.png");
Another posts included in "C#"
| How to implement while loop in C# ? (0) | 2009/09/05 |
| How to implement switch statement in C# ? (0) | 2009/09/05 |
| How to get process id in C# like windows task manager ? (0) | 2009/10/15 |
| How to convert integer to text string ? (0) | 2009/09/04 |
| How to convert text string to integer ? (0) | 2009/09/04 |
| How to set an certain color as transparent color on bitmap (0) | 2009/09/03 |
| How to resize and save PNG or Jpeg Image file ? (0) | 2009/09/03 |
| How to display message box in C# (0) | 2009/09/03 |

Prev

Rss Feed