Wow. I'll have to study this a bit to see how it works. Right now it is asking me to open each file and then replace it, so my folder architecture may be different than what you had it set up for. I have one top level folder, inside of which is one sublevel with many folders such as I included with the post, each with several files.
Ok, I looked into this file size issue. My code has no provision for dealing with text files that are blank, obviously. I'll figure out how to address that, since the machine that runs the test will generate blank files if the test fails.