mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-07 14:10:17 +00:00
33 lines
No EOL
861 B
Text
33 lines
No EOL
861 B
Text
The {{KW|FILEATTR}} function can return a file's current file mode or DOS handle.
|
||
|
||
|
||
{{PageSyntax}}
|
||
:''result%'' = {{KW|FILEATTR}}({{Parameter|fileNumber%}}, {{Parameter|mode%}})
|
||
|
||
|
||
{{PageDescription}}
|
||
*'''[[Keywords currently not supported by QB64|Currently NOT supported in QB64!]]'''
|
||
* {{Parameter|fileNumber%}} is the number assigned in the file's [[OPEN]] statement.
|
||
* {{Parameter|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:
|
||
::{| border="2" cellpadding="1"
|
||
! Return || Open Mode
|
||
|-
|
||
| 1 || [[INPUT]]
|
||
|-
|
||
| 2 || [[OUTPUT]]
|
||
|-
|
||
| 4 || [[RANDOM]]
|
||
|-
|
||
| 8 || [[APPEND]]
|
||
|-
|
||
| 32 || [[BINARY]]
|
||
|}
|
||
:* ''mode%'' = 2: returns the [[DOS]] handle number of a file.
|
||
|
||
|
||
{{PageSeeAlso}}
|
||
* [[OPEN]]
|
||
|
||
|
||
{{PageNavigation}} |