Hi, I am new to VB and need some help with a vbscript. I have two text files that have similar data but the data is in different lines, what I want to do is look in one text file for a specific word and then search a second text file for that word and write the line from the second text file to a 3rd text file. The words in text file 1 and two are always in the same position in each line. Here is an example
Text file 1 contains
this line of text will contain a random value of 0001.4411.5500 in the same place in each line
this line of text will contain a random value of 5835.5468.1165 in the same place in each line
... (file keeps going)
Text file 2 contains
This line contains 0001.4411.5500 as a value in the same place in each line
This line contains 0351.5558.6556 as a value in the same place in each line
...(file keeps going)
So text file 3 would contain:
This line contains 0001.4411.5500 as a value in the same place in each line
I want to look for each random value of whatever is the 11th word in the first text file and see if that value exist in the 4th word of the 2nd text file, if it does, write the entire line from the 2nd text file to a 3rd text file. The string I am looking for is always the same length and always in the same position in each file.
Thank you for any help with this!