Announcement

Collapse
No announcement yet.

unable to find file!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #2
    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
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      Thank you sir!

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎