FILEATTR

From QB64.org wiki
Jump to: navigation, search

This page is maintained for historic purposes. The keyword is not supported in QB64.


The FILEATTR function returns a file's current file mode or DOS handle.


Syntax

result% = FILEATTR(fileNumber%, mode%)


Description

  • Not supported in QB64.
  • fileNumber% is the number assigned in the file's OPEN statement.
  • mode% specifies the type of information to return, which may have the following values
    • mode% = 1: returns the open mode with the following return values:
Return Open Mode
 1  INPUT
 2  OUTPUT
 4  RANDOM
 8  APPEND
 32  BINARY
    • mode% = 2: returns the DOS handle number of a file.


See also



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page