Hi,
Is there a way to get a list of files in a directory?
Looking on google most references seemed to use popen, but this does not seem to be supported.
I want to be able to search a set of text files for a particular string, and display the file name and the line containing the text.
Preferably I would like to get a list of files from a Dropbox directory.
Any suggestions would be good.
Thanks.
Try this. Change Documents to Dropbox or one of the other sprite packages.
function setup()
s=spriteList("Documents")
for a,b in pairs(s) do
print(a,b)
end
end
Thank you, almost there, but this only lists image files, and will only take valid spritepack directories.