1 person found this helpful
Here is what I use, but I'm not entirely sure if it is completely reliable. This compiles with VS2008 (VC++ 9.0).
IntT ws_FileExists(UCharT *path)
// Open for read (will fail if file does not exist)
err = fopen_s(&stream, path, "r" );
if(stream != NULL)
if(err) return False;
else return True;
There is another version at the following link that should compile for older versions of VC++:
By the way, your question did specifically mention the FrameMaker API. I don't know of any way to do this with FDK functions.
You can use the F_FilePathProperty() FDK function to check if a given path (as a FilePathT) exists. This also provides info about whether the path is writable, readable, is a directory or a file.