Author Topic: Edit all text file in the folder  (Read 465 times)

0 Members and 1 Guest are viewing this topic.

Offline dominikkk26

  • Camper
  • ***
  • Posts: 404
    • PMGsite
Edit all text file in the folder
« 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