Starr Duskk
asked on
Streamwriter error handling
I am using streamwriter to write to a file. It faiils to create a file but doesn't generate an exception.
How do I find an error?
try
Dim objStreamWriter As StreamWriter
objStreamWriter = File.CreateText(Uniquefile Name)
objStreamWriter.Write(strO utput)
'Close the stream
objStreamWriter.Close()
Catch ex As Exception
SendError(ex.Message)
End Try
How do I find an error?
try
Dim objStreamWriter As StreamWriter
objStreamWriter = File.CreateText(Uniquefile
objStreamWriter.Write(strO
'Close the stream
objStreamWriter.Close()
Catch ex As Exception
SendError(ex.Message)
End Try
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
what does that do?