VB StreamWriter

suggest change
Dim filename As String = "c:\path\to\file.txt"
If System.IO.File.Exists(filename) Then
    Using writer As New System.IO.StreamWriter(filename)
        writer.Write("Text to write" & vbCrLf) ' Add a newline
    End Using
End If

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents