I copied the majority of the following text from the msdn library,
but I have those annoying lilttle blue lines under the imports section and the file in the file.append bit.
Imports System
Imports System.IO
Public Sub ReadBuffer2()
Dim path As String = "c:\MyTest.txt"
Dim sw As StreamWriter
sw = File.AppendText(path)
sw.WriteLine("This")
sw.WriteLine("is Extra")
sw.WriteLine("Text")
sw.Flush()
sw.Close()
End Sub
I can get arid of the imports section by putting system.io before streamwriter - but i still get the line under the FILE in file.append
Thanks.
but I have those annoying lilttle blue lines under the imports section and the file in the file.append bit.
Imports System
Imports System.IO
Public Sub ReadBuffer2()
Dim path As String = "c:\MyTest.txt"
Dim sw As StreamWriter
sw = File.AppendText(path)
sw.WriteLine("This")
sw.WriteLine("is Extra")
sw.WriteLine("Text")
sw.Flush()
sw.Close()
End Sub
I can get arid of the imports section by putting system.io before streamwriter - but i still get the line under the FILE in file.append
Thanks.