I think I need a good programming forum. I'm frustrated. Anyhoo, given this code:
The file gets created but doesn't get written to.
What am I missing?
Code:
Dim outLogPath As String = "C:\logfile.txt"
Dim outLogStream As System.IO.StreamWriter
If Not IO.File.Exists(outLogPath) Then
outDataStream = System.IO.File.CreateText(outLogPath)
Else : outLogStream = New System.IO.StreamWriter(outLogPath, False)
End If
outLogStream.WriteLine("Log File Created")
What am I missing?

Comment