Returns the MS-DOS or MS-Windows file handle of the opened file #n. If file #n is not opened a 0 is returned, or in case of devices (LPT1:...) a negative number is returned.
x = _File(n%)
x: Handle
n% must be in the range between 0 and 511 to correspond to available channel numbers.
OpenW # 1
Open "lpt1:" for Output As # 1
Open "test1" for Output As # 2
Open "test2" for Output As # 3
Local i%
For i% = 1 To 5
Print _File(# i%)
Close # i%
Next i%
Prints the corresponding MS-DOS handles.
{Created by Sjouke Hamstra; Last updated: 20/09/2014 by James Gaite}