FREEFILE function

Purpose:

The FREEFILE function returns a file handle that is not being used and assigns it to hFile.

Syntax:

hFile = FREEFILE

Return Value:

  • Data type: FILE
    hFile An available file handle.

Parameters:

  • None.

Remarks:

👉 Declaration of the hFile variable is done automatically by the FREEFILE function.

Example:

MyIO = FREEFILE
OPEN "Test.txt" FOR OUTPUT AS MyIO
CLOSE MyIO