1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 19:05:54 +00:00
QB64-PE/internal/help/FILEATTR.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

33 lines
861 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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=&quot;2&quot; cellpadding=&quot;1&quot;
! 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}}