Archive: replacing a placeholder with multiple items


replacing a placeholder with multiple items
kichik pointed me to this script to replace a placeholder in any file with another word.

now i was wondering if there's a possibility to replace one placeholder with multiple files. i want to use installoptions to allow the user specify a directory. a certain filetype of this directory should then be listed in another file, seperated by linebreaks only.

i guess if it works, one has to use a loops here, but including another loop into the script's loop is getting to complex for me.

is there a solution? thanks in advance!


Make a function out of the script I gave you and use it inside another loop that iterates through files in the requested directory (FindFirst, FindNext and FindClose). The script shouldn't look any more complex than any regular loop.