Checking whether file with full path exists
Given a filename + path like c:\temp\test.txt or a server filename + path like /usr/sap/trans/tmp/test.txt.
Can somebody please share ideas how can I check whether this file path and file indeed exists and is writeable.
Thanks
Cathy
Check out Class CL_GUI_FRONTEND_SERVICES and OPEN DATA SET.
Regards,
R Heilman
**Old B4 edition****
Kumar
Thanks for your code.
But I do not want to check if the file exists what I really want to test is whether the file path like
on a server if the path like /usr/sap/data/FI/
exists or on the workstation a file path like c:\data\fi
exists. I need to check the file path before I start writing to that file to ensure indeed such a path exists.
Thanks
Cathy
OK Love.
I will check for this as soon as I return to the office.
Hopefully someone working on Saturdays may be able to post a soln.
KRK
We are running 40B this does not work on 40B ?
See **Old B4 edition**** above.
KRK