What I have is a config file with 100's of lines that has the following format:
Input line : FHF02030304|C:\sd\dad\qwe\re|{203-207}.TXT|5`
The format is : ID|Directory|Text|# txts
The formula for the additional lines is Text (in example 203) +1 -1.
so in the following example 203 +1 -1 = 203 (the first file)
203+2-1 = 204 (the 2nd file)
I need to translate that to
Example output:
FHF02030304|C:\sd\dad\qwe\re|203.txt
FHF02030305|C:\sd\dad\qwe\re|204.txt
FHF02030306|C:\sd\dad\qwe\re|205.txt
FHF02030307|C:\sd\dad\qwe\re|206.txt
FHF02030308|C:\sd\dad\qwe\re|207.txt
So i basically have to translate the one line of the file to additional lines for each # of files.
What i'm trying to do is take a config file and turn it into a full file path. so in the example
FHF02030304|C:\sd\dad\qwe\re|203.txt
FHF02030305|C:\sd\dad\qwe\re|204.txt
FHF02030306|C:\sd\dad\qwe\re|205.txt
FHF02030307|C:\sd\dad\qwe\re|206.txt
FHF02030308|C:\sd\dad\qwe\re|207.txt
in other words C:\sd\dad\qwe\re\203.txt is the full path. The reason the last number after the last | is so important is thats how many files are related to that file. So if there was |200 that would mean there is 200 files and i need to start after the first number whatever, and go from # +199 (and it's plus 199 because the formula is number +1 -1).