Apologies for the newbie question. I have done this in java and C#, but I’ve after spending an hour consulting forums, I’m still confused.
I am attempting to check if a certain file exists in the documents directory.
Currently, I’m listing all of the items in the directory into a text file using the code
local dir = "'" .. system.pathForFile( x, system.DocumentsDirectory ) .. "'"
local fileDir = "'" .. system.pathForFile( "\_files.txt", system.DocumentsDirectory ) .. "'"
os.execute("ls " .. dir .. "\>" .. fileDir)
now I need to iterate through the file and check to see if a file exists. Any help would be great! [import]uid: 34103 topic_id: 22052 reply_id: 322052[/import]