qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FILEATTR Function
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Returns the file handle or file mode of an open file or ISAM table (ISAM
 available in Professional Edition only).
 
    FILEATTR(filenumber%, attribute%)
 
    ■ filenumber%      Number specifying an open file
 
    ■ attribute%       Numeric expression, either 1 or 2, that indicates
                       the type of information to return:
 
                       Number     Returns
                       ══════     ══════════════════════════════════════════
                       2          MS-DOS file handle if filenumber% indicates
                                  a file, or 0 if filenumber% indicates an
                                  ISAM table
                       1          File mode:
                                  1 = INPUT
                                  2 = OUTPUT
                                  4 = RANDOM
                                  8 = APPEND
                                  32 = BINARY
                                  64 = ISAM
 
 See Also
   OPEN Statement (File I/O)