(If you mean 'an open file that your program opened...)
Sure!
(Of course i was going to say the obvious. )
In your code, always make sure to keep track of open files so that you can close them when your program stops. I know this isn't the prettiest way, but it is simple.
Example:
'IN your code you may have a function that opens any file like this:
Private Function OpenFile(Byval strFileName as String) as boolean
Dim Y
Y = FreeFile
Open strFileName for Input as Y
'Do whatever
Close Y
End Function
'-or-
Private Function OpenFile(byval strFileName as String) as boolean
Open strFileName for Output as #1
'Do whatever
Close #1
End Function
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe