# FILEINFO

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

Tags: file operations

# Description

Use the FILEINFO function to return information about the specified file variable. It takes the general form:

FILEINFO(file.variable, key)
1

This function is currently limited to return values to indicate if the file variable is a valid file descriptor.

Key returns 1 if file.variable is a valid file variable, or 0 if not.

OPEN "test_rec" TO file_Var ELSE ABORT 201, "This file "
IF FILEINFO(file_Var, 0) = 1 THEN CRT "File information is valid"
ELSE
    CRT "Invalid information"
END
1
2
3
4
5

# Note

For more in-depth file information, see the IOCTL functions.

In addition, see also the Dynamic Objects $file class.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide