2017-10-10 14:55:21 +00:00
|
|
|
The [[FREEFILE]] function returns a [[LONG]] value that is an unused file access number.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
: fileHandle& = [[FREEFILE]]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2017-10-10 14:55:21 +00:00
|
|
|
{{PageDescription}}
|
|
|
|
* [[FREEFILE]] values should be given to unique variables so that each file has a specific variable value assigned to it.
|
2016-03-18 11:36:04 +00:00
|
|
|
* Once the number is assigned in an [[OPEN]] statement, the file number can later be used to read, write or [[CLOSE]] that file.
|
2017-10-10 14:55:21 +00:00
|
|
|
* 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.
|
2019-04-15 01:15:33 +00:00
|
|
|
<!-- redundant * [[OPEN COM]] statements cannot use any number assigned to files already OPEN. -->
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2017-10-10 14:55:21 +00:00
|
|
|
{{PageSeeAlso}}
|
2015-08-02 12:12:44 +00:00
|
|
|
* [[GET]], [[PUT]], [[CLOSE]]
|
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|