By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

TextStream.close problem

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"AspProgrammer" <jd******@skynet.be> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.