Announcement
Collapse
No announcement yet.
unable to find file!
Collapse
X
-
Please read the manual on File.Find. The first argument has to be a directory, the second argument needs to be a filename or searchpattern. File.Find also returns a table when it finds one or more files, and nil when it finds nothing.
Code:found = File.Find("c:\\pass\\", "info.txt", false, false, nil, nil); if (found ~= nil) then Dialog.Message("info", "found" , MB_OK); end
Leave a comment:
-
-
unable to find file!
i am unable to find file.
please see my code below. ON PRELOAD OF PAGE
found = File.Find("c:\\pass\\info.txt", false, false, nil, nil);
if (found == true) then
Dialog.Message("info", "found" , MB_OK);
end
thank you!Tags: None
-
Leave a comment: