imports system.IO
Dim path As String = Application.StartupPath & "\config.cfg"
Dim SW As StreamWriter
Dim FS As FileStream
FS = New FileStream(path, FileMode.Create)
SW = New StreamWriter(FS)
SW.WriteLine("Set Example_1", TextBox1.Text)
SW.WriteLine()
SW.WriteLine("BLAH BLAH BLAH NEXT LINE BLAH")
SW.Close()
FS.Close()
----
this should help you out, remember at the top of the file to import system.io