Last time I used this it was working. Not sure what couldve happened to it.
All it needs to do is add to the end of the text file what is typed in the text file.
VB Code:
[edit]I added in Visual Basic markup tags. -Derek[/edit]
All it needs to do is add to the end of the text file what is typed in the text file.
VB Code:
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim line As String = TextBox3.Text
Dim SB As System.Text.StringBuilder = New System.Text.StringBuilder
Do
If line <> TextBox3.Text Then
SB.Append(line)
SB.Append(System.Environment.NewLine)
End If
Loop Until line = TextBox3.Text
Dim SW As New IO.StreamWriter(TextBox2.Text, True)
SW.Write(SB.ToString())
SW.Close()
End Sub
Last edited by a moderator: