I have two files. One has the parameters I need to split a line into pieces. The other file is a one line file. I woud like to read from the file that tells me how to split the line on the other file and then under that line in the file put each piece on consecutive lines.
For example for the one line file:
For the parameter file:
Now first the numbers are not in any pariticular column but they are always in the format (number:number)
So now I would read the first line and figure out that columns 4 - 11 go on the next line. I would like to terminate each new line with a | character
The next line says 12 - 12
and so on reading from the second file , rewriting the first until there are no more (number:number) lines left.
All help is appreciated.
I am using UE 14.00b
For example for the one line file:
Code: Select all
11111111222222222444444499999999
Code: Select all
val1 position (4:11)
val2 position (12:12)
val3 position (13:16)
So now I would read the first line and figure out that columns 4 - 11 go on the next line. I would like to terminate each new line with a | character
Code: Select all
11111111222222222444444499999999
11112222|
Code: Select all
11111111222222222444444499999999
11112222|
2|
All help is appreciated.
I am using UE 14.00b