Replacing Text

Tddupre

Member
Joined
May 12, 2009
Messages
5
Programming Experience
1-3
hi guys i need some help. i am using vb.net 08. I have a php file loading into a text box. and then i have an external text file. the text file looks like this:
"text 1= text 2
text 3 = text 4
etc"
I need the program to search for terms inside the text box that are on the right side of the equal sign and replace it with the one on the left
 
When you read each line then use the string.split method to seperate it into an array:
VB.NET:
Dim myArr() As String = txt1.Text.Split("=")
myArr(0) = myArr(1)
txt2.Text = myArr(0) & "=" & myArr(1)
 
Ok thanks for the helps but i am still pretty new to vb.

here is the setup:

Textbox2 = The PHP File

Textbox3 = The raw text file

Textbox4 = the array

Questions

1.) How would I read each line of Textbox3 to include in the array

2.) How would I use the array search and replace the values in the php (textbox2)

here is what the program looks like
n5o5f6.jpg
 
Back
Top