Hi all,
I have a TXT-File with the content
now I want to replace the content between xbeginx and xendx to make the TXT-File looks like
my code doesnt work it seems it doesnt work on multiple lines....
$sFile = "source.txt"
$sText = FileRead($sFile,FileGetSize($sFile))
$aFound = _StringBetween($sText,"[xbeginx]","[xendx]")
$sText = StringReplace($sText, "$aFound", "clean")
$sFileNew = "result.txt"
FileWrite($sFileNew,$sText)
can you help me?
thanks