I have a question which is a bit complex for me as it load different text files and arrange them to one.
The idea is that, I have a different text file like this:
The number of the files is unknown, but I know that the file name will start by "test" and then a number starts from 1 and then the ext ".txt". Each file will include four numbers like this:
The idea is that, I want to load all the files and then output one file (output.txt) with specific format. The furcation will first load the first file which is test1.txt
Save it to output.txt file and then load the second file and try to match the numbers in test2 to test1 so as you can see there is match which is number 2. It then loads test2.text to the output file starting from number 2 in the file. So, the result is that:
And then load the other files with the same idea, so the final result will be like this:
4 /9 /9
And so one. To summarise the idea, load the first text file and output the content to an output file (output.txt) and then load second file and try to match the first number with the previous data on (output.txt) when it finds matches (and it has to find on it might be the first, second, third or fourth number) then it will add the second file just next to the matched number.
Hope I have explained the idea clearly and please let me know if there is any question! Thanks in advance
Note: I am using vb.net 2008