I suggest checking both the CanRead and CanWrite properties. If the Stream is closed, they will both return false. If the Stream is open, I would expect at least one of them to return true, otherwise the Stream is essentially useless.
Code:
If Not (fs.CanRead Or fs.CanWrite) Then
Assume closed
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.