Difference: 0LASubrFileExists (4 vs. 5)

Revision 52014-03-10 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="APPXRuntimeSubroutineAPI"

.FILE EXISTS

Line: 6 to 6
 

Usage:

Changed:
<
<
     PASS        <exists?>                 FIELD           SHARE? Y

>
>
     PASS        <exists?>                 FIELD           SHARE? Y

  PASS <pathname> FIELD SHARE? N GOSUB --- .FILE EXISTS * check for errors
Line: 25 to 24
  The subroutine tries to open the file for Read access, and if it cannot, it returns a "N". It cannot distinguish between a file that does not exist and a file it cannot open due to file permissions, both cases will return "N".
Changed:
<
<
You can also use this to test if a directory exists by passing a directory name.
>
>
You can also use this to test if a directory exists by passing a directory name (Unix/Linux only).
 

Comments:

Read what other users have said about this page or add your own comments.

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback