---
title: "getFiles"
canonical: "https://help.vicon.com/space/Shogun16/13341069/getFiles"
format: markdown
---
# 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](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339929) 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

```plaintext
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

- [fileClose](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339932)
- [fileOpen](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13339929)