Originally Posted By: Malice
This can be used to sort text files. Like so
txt_for_dir(tDir,"*.txt");
txt_for_dir(tDir,"*.txx");
, didn't know that, nice tip.

@rayp, that looks like exactly I could use. I get an invalid memory error when trying to use it though confused :

(note: tmp_str is the path to the folder, same as I used with txt_for_dir but just without the wildcard)
Code:
var num = txt_for_dir_plus(mytext, tmp_str, "*.MDL|*.HMP|-*_open.*");