1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-05 12:20:22 +00:00
qb64/internal/help/FILEATTR.txt

38 lines
997 B
Plaintext
Raw Normal View History

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.
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
: {{Parameter|result%}} = [[FILEATTR]]({{Parameter|fileNumber%}}, {{Parameter|mode%}})
{{PageDescription}}
2017-10-10 14:55:21 +00:00
*'''[[Keywords currently not supported by QB64|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
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"
! 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.
{{PageSeeAlso}}
* [[OPEN]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}