Free for PREMIUM members
[Last Call] Learn how to a build a cloud-first strategyRegister Now
Using sw As New StreamWriter(New MemoryStream())
For i As Integer = 0 To 10
sw.WriteLine("This is line " & i)
End Using 'sw is guaranteed to be disposed here whether an exception occurs or not
Catch ex As Exception
Console.WriteLine("An error occurred.")
Open in new window
Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.