VB.Net Tutorial/Stream File/Text file Write

Материал из VB Эксперт
Перейти к: навигация, поиск

Append to a text file

Imports System.IO

Public Class Tester
    Public Shared Sub Main
        Dim w As StreamWriter
        w = File.AppendText("test.txt")
        w.Write("it is writing data")
        w.WriteLine(1)
        w.WriteLine("writeline")
        w.WriteLine("True")
        w.Close()
    End Sub
End Class