I have 223 XML files and I need to perform some actions on each of them, so that the output should be the modified texts (223 new files).
What I have noticed is that if I apply my script recursively to each file and then save the results in new files (file:write()), everything works fast. On the other hand, If I do not write out the results in new files (but I expect the results from all the files in the GUI), the GUI freezes and then runs out of memory.
My question is: is there a way to get the script working well without using file:write()? Should I always apply this script strategy when I work with many files?
Thanks,
Joseph