Jan 28, 2018 09:53 AM|demoninside9|LINK
not sure to get what was your intent with that extra line
You are right I just want to delete the file.
Actually I am generating file in release folder, then attaching it with an email and after sending the email I am trying to delete the file.
But when I try to delete the it says that "file is being used by another process" . So I put deleting code after every thing has been done, but still code the is unable to delete this file, shows same error "file is
being used by another process"
So someone suggested me to use the using file stream so that you can easily delete the files and when I added this code is shows error
access is denied, then I give admin permission on the whole folder but still it is not deleting the file.