Cannot delete Text File??

  • 13 years ago

     Hi

     I need to delete a text file after i have emailed it as an attachment. I am using SMPT emails, and attach the textfile to the email.

    But when i try to delete it after the email has been sent, i get an error saying that the file is still in use by another process. Now i am guessing that beacause i added the file to the email as an attachment, its probably still opened in memory somewhere? Am i right? And how do i unload it from memory so that i can delete it.

    Thanks in advance

    Stompi2007
     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” - Edsger Dijkstra