T
Tom
Do I really need to flush a streamwriter? It appears to work either way.
Dim sw As StreamWriter
Dim strFullPath As String = "C:\Temp\Test.txt"
If File.Exists(strFullPath) Then
sw = File.AppendText(strFullPath)
Else
sw = File.CreateText(strFullPath)
End If
sw.WriteLine("Hello its me")
'sw.Flush()
sw.Close()
Tom
Dim sw As StreamWriter
Dim strFullPath As String = "C:\Temp\Test.txt"
If File.Exists(strFullPath) Then
sw = File.AppendText(strFullPath)
Else
sw = File.CreateText(strFullPath)
End If
sw.WriteLine("Hello its me")
'sw.Flush()
sw.Close()
Tom