Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: dominikkk26 on October 16, 2013, 08:49:30 am

Title: Edit all text file in the folder
Post by: dominikkk26 on October 16, 2013, 08:49:30 am
Hey, is there a procedure or function, you can edit each text file in a folder? If you do and it is possible to create if someone could write me such a function because it is beyond me. I know I can write. Dll or file. Whip but how to run these files using a script?

TestFolder contains the files:
test1.txt
test6.txt
Test9.txt
Test11.txt

After the:

   outdata :=    Line1+chr(13)+chr(10)+
            Line2+chr(13)+chr(10)+
            Line3+chr(13)+chr(10)+
            Line4+chr(13)+chr(10)+
            Line5+chr(13)+chr(10);
   WriteFile('TestFoler/'+AllFile+'.txt',outdata);

In each of these files:
test1.txt
test6.txt
Test9.txt
Test11.txt

Will be changed data