FileAttr( BYTE, BYTE )

Returns the operating system handle or the file mode of the opened file.

Parameters:

FileNum

Byte

The file number of the opened file

Option

Byte

If a one(1) is specified then the file mode is returned, if a two(2) is specified then the file’s operating system handle is returned