The first code writes the text to the end line, but if used more than once, it puts all of the added text on the same line. How do I make it write to its own line every time?
Also, how can the second code be used to delete a line of text. I want to have to type the exact line that you want deleted for it to work.
VB Code: Add to File
Dim file As String
Dim StreamWriter As New IO.StreamWriter(TextBox2.Text, True)
StreamWriter.Write(TextBox3.Text)
StreamWriter.Close()
VB Code: Delete from File
Dim file As String
Dim StreamWriter As New IO.StreamWriter(TextBox2.Text)
StreamWriter.Write(TextBox4.Text)
StreamWriter.Close()
Also, how can the second code be used to delete a line of text. I want to have to type the exact line that you want deleted for it to work.
VB Code: Add to File
Dim file As String
Dim StreamWriter As New IO.StreamWriter(TextBox2.Text, True)
StreamWriter.Write(TextBox3.Text)
StreamWriter.Close()
VB Code: Delete from File
Dim file As String
Dim StreamWriter As New IO.StreamWriter(TextBox2.Text)
StreamWriter.Write(TextBox4.Text)
StreamWriter.Close()