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