i want to edit text files in vb6.
but i have a problem..
i can't hide the return back the ampersand on the text file when i need to save it.

i don't know how to return back the deleted ampersand when i saved the text file.
help me


here's my code

Private Sub Command2_Click()
Dim cont, cont1, cont2 As String
Dim jak, jak2 As String

Dim pos, ctr As Integer
cont = RichTextBox1.Text
cont1 = RichTextBox1.Text
cont2 = "="
pos = InStr(cont, cont2)

jak1 = Mid(cont1, pos + 1)
jak2 = Left(jak, Len(jak) - 1)
MsgBox jak2
End Sub