I have a big text file that looks like this:
FROM: X
STEPS: 10
FROM: X
STEPS: 3
......
.......
......
.....
...
FROM: X
STEPS 5

The X is a constant "X" characters, the steps varies from 1 to 10 with no rule or 
special consistency.
I need the best way to Replace The X char to the REAL "from" number according to the 
steps.
Each FROM is the LAST FORM + STEPS.

i.e - to get something like this:

FROM: 1
STEPS: 10
FROM: 11
STEPS: 3
FROM: 14
STEPS: 3
FROM: 17
......
....

Thanks,

Michael.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to