AW: [NF] Tool for editing multiple files for huge search/replace operation

Author: <juergen@wondzinski.de>

Posted: 2018-10-30 at 03:14:32

And, BTW, that's just a 3Liner in VFP:

FOR i = 1 TO ADIR(aFiles, "*.txt")

STRTOFILE(STRTRAN(FILETOSTR(aFiles(i,1)), "OldText", "NewText"),

aFiles(i,1))

ENDFOR

Or, maybe for easier disassembly:

FOR i = 1 TO ADIR(aFiles, "*.txt")

cFile = aFiles(i,1)

? cFile

cContent = FILETOSTR(cFile)

cContent = STRTRAN(cContent, "OldText", "NewText", <Several Options

here>)

STRTOFILE(cContent, cFile)

ENDFOR

wOOdy 

"*´¨)

¸.·´¸.·*´¨) ¸.·*¨)

(¸.·´. (¸.·` *

.·`.Visual FoxPro: It's magic !

(¸.·``··*

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000c01d47028$96fb4780$c4f1d680$@wondzinski.de

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2018 <juergen@wondzinski.de>