From QB64 Wiki
The FILEATTR function can return a file's current file mode or DOS handle.
- result% = FILEATTR(fileNumber%, mode%)
- Currently NOT supported in QB64!
- fileNumber% is the number assigned in the file's OPEN statement.
- 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:
- mode% = 2: returns the DOS handle number of a file.