When I run the algorithm it gives me a non empty array… Don’t know what you’re trying to do with it but it’s not empty.
Have you checked that your loadstring gets any file (you don’t get message if no file were found I think)
The code I ran (you can copy-paste it directly into ted)