
Originally Posted by
jaca
The position of SPNT change depending on the file. How do I set a start if I do not know where the SPNT will appear in another file?
There are many ways to do that, really. Here's pseudo code to go through all the instances of 'SPNT' in a string list.
from = 0
index = 0
while ( index = strlist.indexOf('SPNT', from) != -1 )
...
from = index
endwhile
from = 0
index = 0
while ( index = strlist.indexOf('SPNT', from) != -1 )
...
from = index
endwhile
To copy to clipboard, switch view to plain text mode

Originally Posted by
jaca
Actually I have a file like this:
...
And I put it in this format:
...
There must be an easier way that my.
Why don't you read it line by line and insert VELF in the beginning of line where the line doesn't start with SPNT?
Bookmarks