Hola compañeros...
¿Cómo puedo saber si un StreamReader está abierto?
Teniendo el siguiente fragmento de código, necesito saber
en la sección FINALLY del TRY si está abierta la variable
stwTemp.
Try
'
'crear o abrir archivo LOG
stwTemp = New IO.StreamWriter(strLogFile, True)
With stwTemp
'
.WriteLine("Message : {0}", Exception.Message)
.WriteLine("Source : {0}", Exception.Source)
.WriteLine("StackTrace: {0}", Exception.StackTrace)
.WriteLine("TargetSite: {0}", Exception.TargetSite)
.Flush()
End With
Catch ex As Exception
'
Finally
'
'AQUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
'AQUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
'¿Cómo puedo saber si stwTemp está abierto?
End Try
Gracias...
Leer las respuestas