mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-19 01:34:58 +00:00
aeb9c0668b
Note: Many files were removed (not yet existing/empty pages). The parser will try to download them on demand and will auto-generate text for missing pages (eg. most _gl pages).
24 lines
918 B
Text
24 lines
918 B
Text
{{QBDLDATE:05-20-2022}}
|
|
{{QBDLTIME:23:13:28}}
|
|
The [[FREEFILE]] function returns a [[LONG]] value that is an unused file access number.
|
|
|
|
|
|
{{PageSyntax}}
|
|
: fileHandle& = [[FREEFILE]]
|
|
|
|
|
|
{{PageDescription}}
|
|
* [[FREEFILE]] values should be given to unique variables so that each file has a specific variable value assigned to it.
|
|
* Once the number is assigned in an [[OPEN]] statement, the file number can later be used to read, write or [[CLOSE]] that file.
|
|
* File numbers [[CLOSE]]d are made available to [[FREEFILE]] for reuse immediately.
|
|
* [[FREEFILE]] returns are normally sequential starting with 1. Only file numbers in use will not be returned.
|
|
* [[OPEN]] each file number after each [[FREEFILE]] return or the values returned may be the same.
|
|
<!-- redundant * [[OPEN COM]] statements cannot use any number assigned to files already OPEN. -->
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[GET]], [[PUT]], [[CLOSE]]
|
|
|
|
|
|
{{PageNavigation}}
|
|
|