FILEATTR - QB64 Wiki

FILEATTR

From QB64 Wiki

Jump to: navigation, search

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


Syntax:

result% = FILEATTR(fileNumber%, mode%)


Description:

  • Currently 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
Views
Personal tools