Hi,
Thank you for your enquiry.
As you correctly state, the
FileExists() function is only available in Opus Pro XE 04.
One possible workaround would be to use an
OpenFile() function in read only mode to open the file you wish to check, then check the contents of the object which stores the file connection. If this object contains data, the target file exists and you can apply the relevant actions. Otherwise, the file was not found.
The code should look something like the following:
Code:
file = OpenFile("C:\\Documents and Settings\\Username\\Desktop\\targetfile.txt",false,true)
if (file) {
Debug.trace("File exists!")
} else {
Debug.trace("File not found!")
}
I hope this helps. Please do not hesitate to contact me if you have any further queries.
Kind regards,