07-02-2017, 01:34 PM
Macro Macro2840
str G1="9,800"
str G2="9,500"
str filePath="Q:\test\test.txt"
str fileText.getfile(filePath)
str oldText=
F
;1=
;{G1}
;2=
;{G2}
str newText=
F
;Bom {G1} bibom
;Mango {G2} tango
int n=fileText.findreplace(oldText newText 2) ;;see also replacerx
out F"Replaced {n} instances"
if(n) fileText.setfile(filePath)