TextStream.close problem

  • Thread starter Thread starter AspProgrammer
  • Start date Start date
A

AspProgrammer

Hello

I'm writing a web application where i upload a file. then i open the
file use textstream. At the end of my application i close it by using
TextStream.close. But when i try to delete the file on my hard disk i
keep getting the error "file is being used by other program or person".
The only solution then is to restart iis and then delete the file.

Why isn't TextStream.close really closing my file??

Thx for your help guys


greetzz Jurgen
 
AspProgrammer said:
I'm writing a web application where i upload a file. then i open the
file use textstream. At the end of my application i close it by using
TextStream.close. But when i try to delete the file on my hard disk i
keep getting the error "file is being used by other program or person".
The only solution then is to restart iis and then delete the file.

Why isn't TextStream.close really closing my file??

Are you referring to the FSO's 'TextStream' object? I am just curious why
you don't use the according classes from the 'System.IO' namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top