---
title: "getFiles"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737654/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/ShogunPost121/pages/1253738450) 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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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/ShogunPost121/pages/1253736768)
- [fileOpen](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738450)