|
How to delete file in C# .NETThere is an easy way how to delete file permanently.
Source code:
string path = @"c:\myfolder\MyFile.txt";
File.Delete(path);
If the specified file does not exist, an exception is not thrown.
Do not forget to add:
using System.IO;
Comments
Add your comment
|
List of articles
How to compare two Strings in C# Smart utilities |
Webdesign (c) 2009 - 2024 Supremus.sk |