Trying to write a series of lines to a streamwriter in ASP.NET 3.5 VB.NET but I get an error 'Object reference not set to an instance of an object.' Here is the code 

```
Dim sW As StreamWriter, iX As Integer = 0
For iX = 0 To 5
  sW.WriteLine("SomeThing") 'Error occurs here 
Next

```

My goal is to write a write a series of strings in different lines. This seems so simple but I don't see how the reference isn't set; I'm declaring two lines above. TIA.