Site hosted by Angelfire.com: Build your free website today!
NAME
  FILEATTR Function

SYNOPSIS
  FILEATTR(filenumber%,attribute%)
      o filenumber%    The number of an open file.
      o attribute%     Specifies the type of information to return. When
                       attribute% is 1, FILEATTR returns a value indicating
                       the file's access mode:
                       Value   Mode
                       -----   ------
                       1       Input
                       2       Output
                       4       Random
                       8       Append
                       32      Binary
                       When attribute% is 2, FILEATTR returns the DOS file
                       handle.

DESCRIPTION
  Returns information about an open file.

  Example:
      OPEN "TEST.DAT" FOR BINARY AS #1
      PRINT FILEATTR(1, 1)
      CLOSE

SEE ALSO
  OPEN