koenp 0 Posted September 12, 2013 Hello everybody, I am wondering if somebody could help me in a small script that is able to replace the string <record> in a text file. Here is what I already have.. #include <File.au3> $XMLfile = @ScriptDir & "\etc\QC.xml" $XMLfileWR = FileOpen($XMLfile, 1) ;REMOVE </record> in XML $find = "</record>" $replace = "" ReplaceStringInFile($XMLfile, $find, $replace) The string appears only 1time in the text file Many thanks for all your help. Kindly regards Koen Share this post Link to post Share on other sites
koenp 0 Posted September 12, 2013 Okay my fault.. Here is the working code for those who think it is usefull #include <File.au3> $XMLfile = @ScriptDir & "\etc\QC.xml" $XMLfileWR = FileOpen($XMLfile, 1) $find = "</record>" $replace = "" _ReplaceStringInFile($XMLfile, $find, $replace) Share this post Link to post Share on other sites