Sorry guys to ask this, I'm lost. I searched previous post but find no help.
I have the following 2 files:
File 1 = ID#|Category (Pipe separated values, about different 1,300 lines)
File 2 = Url|Category|Link (30,000 lines)
What I need is to do is open File 2, split and find the ID# for the Category inside File 1 and write to new File 3 Url|ID#|Link
OK, I open File 1 and create an array then close, I open File 2 and "foreach" line I split using |
I dont know how to split each element in array from File 1 that is in memory already and compare. What is the correct sequence to open and close each file and how to split each element since each element is separated by | in array1?
I have the following 2 files:
File 1 = ID#|Category (Pipe separated values, about different 1,300 lines)
File 2 = Url|Category|Link (30,000 lines)
What I need is to do is open File 2, split and find the ID# for the Category inside File 1 and write to new File 3 Url|ID#|Link
OK, I open File 1 and create an array then close, I open File 2 and "foreach" line I split using |
I dont know how to split each element in array from File 1 that is in memory already and compare. What is the correct sequence to open and close each file and how to split each element since each element is separated by | in array1?