Verifying existance of file

chespi

New Member
Hello,

I am a new progress user and I can not figure out how to verify if an entered file exists. Hope you can help me.

I am prompting the user to enter the name of a file from where i'll be reading some info. This file is supposed to be in /tmp. How can i verify that the file exists there so i can display an error message?

Thank you.
 
Hello,
if u need in same time to know if a file or a directory is available u can use file-info like this
file-info:file-name = path.
if file-info:full-pathname = ? then message 'error'.
 
Back
Top