2017-10-10 14:55:21 +00:00
|
|
|
|
'''This page is maintained for historic purposes. The keyword is [[Keywords currently not supported by QB64|not supported in QB64]].'''
|
|
|
|
|
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
The [[FILEATTR]] function returns a file's current file mode or DOS handle.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
|
: {{Parameter|result%}} = [[FILEATTR]]({{Parameter|fileNumber%}}, {{Parameter|mode%}})
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
2017-10-10 14:55:21 +00:00
|
|
|
|
*'''[[Keywords currently not supported by QB64|Not supported in QB64.]]'''
|
2015-08-02 12:12:44 +00:00
|
|
|
|
* {{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
|
2017-10-10 14:55:21 +00:00
|
|
|
|
** {{Parameter|mode%}} = 1: returns the open mode with the following return values:
|
2019-04-15 01:15:33 +00:00
|
|
|
|
::{| border="2" cellpadding="1"
|
2015-08-02 12:12:44 +00:00
|
|
|
|
! Return || Open Mode
|
|
|
|
|
|-
|
|
|
|
|
| 1 || [[INPUT]]
|
|
|
|
|
|-
|
|
|
|
|
| 2 || [[OUTPUT]]
|
|
|
|
|
|-
|
|
|
|
|
| 4 || [[RANDOM]]
|
|
|
|
|
|-
|
|
|
|
|
| 8 || [[APPEND]]
|
|
|
|
|
|-
|
|
|
|
|
| 32 || [[BINARY]]
|
|
|
|
|
|}
|
2017-10-10 14:55:21 +00:00
|
|
|
|
** {{Parameter|mode%}} = 2: returns the [[DOS]] handle number of a file.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
|
|
|
* [[OPEN]]
|
|
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
|
{{PageNavigation}}
|