GetFileFolderInfo usage and flags

Hi, I'm using Igor Pro 4 ans would like to use GetFileFolderInfo to check whether a file exists on a local disk. However I can't find the command in the Igor help or online. Is it only available in later Igor versions? Are there alternatives I can use to check whether a file exists with Igor 4?

If it is possible to use GetFileFolderInfo, could you please post the correct usage explanation as I am not sure which flags to set.
GetFileFolderInfo was added in Igor Pro 5.

In Igor Pro 4 you can use something like this:

Function DoesFileExist(pathName, pathToFile)
    String pathName // Name of Igor symbolic path or ""
    String pathToFile   // Full path, partial path relative to symbolic path, or filename relative to symbolic path

    Variable refNum
    Open /P=$pathName /R /Z refNum as pathToFile
    if (V_flag == 0)
        Close refNum
        return 1
    endif
    return 0
End


Of course, I recommend that you upgrade to the latest (Igor Pro 6.22A).
Thanks for your help, this works fine.

Everyone in my workgroup is using Igor 4. We do have access to Igor 6 but personally I couldn't see a big difference in everyday use.. Are there any major advantages over Igor 4?
I don't know how it feels if you only ever have worked with an old version. But I was working with Igor 5 and 6 back and forth some years ago and after a while I got so annoyed by the "missing features" in 5 especially in the programming department that I dropped all Igor 5 compatibility in my procedures and never looked back. I worked with Igor 3.1 on an old Mac once and it was like living in the Stone Age for me. Don't know how Igor 4 compares to that. You may get an idea from the comparison page (there's also a link 'previous versions' for Igor 4):

http://wavemetrics.com/products/igorpro/newfeatures.htm