Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

Description

Gets a list of the currently open files, as file IDs

Use this command to get how a list of the files you have opened using the fileOpen command. The list is returned as an array of integers, containing the file IDs of the open files.

Functional area

Disk I/O

Command syntax

Syntax

getFiles

Arguments

None

Flags

None

Return value

integer array

Examples

int $idArray[] = `getFiles`;
int $count = `getCount $idArray`;

// Print out the number of open files
print ( "You have " + string( $count ) + " files open" );

Additional information

Related commands

  • No labels