how do i delete file from c-sharp
filestream in c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Jun 22, 2013, 2:33 PM
just use:
File.Delete("D:\\myfile.txt");
Add reference to System.IO if you haven't done yet.
Mark it as answer if it helps.
Cheers!