# PxIOGetFileInfo

> Source: https://manual.pvxplus.com/pxio-library/library-functions/file-information-functions/pxiogetfileinfo

## Description

Retrieves file information

## Format

**int** **PxIOGetFileInfo(PxIOFileHandle handle, PxIOFileInfoType type, int \*fileInfo);**

***Where:***

|  |  |
| --- | --- |
| **handle** | The handle of an open file |
| **type** | Specifies the type of file information that is being requested. The allowed values for this parameter are:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| INFO_TYPE_EXTERNAL_KEY_SIZE \| External key size \|<br>\| INFO_TYPE_RECORD_SIZE \| Record size \|<br>\| INFO_TYPE_RECORD_COUNT \| Current record count \|<br>\| INFO_TYPE_FILE_SIZE \| Current file size in bytes \|<br>\| INFO_TYPE_RECORD_MAX \| Maximum number of records allowed \|<br>\| INFO_TYPE_FILE_TYPE \| File type. See the list in **[Appendix D](https://manual.pvxplus.com/pxio-library/library-functions/appendix-references/appendix-d)**. \|<br>\| INFO_TYPE_FIELD_SEPARATOR \| Field separator used in the file \|<br>\| INFO_TYPE_BLOCK_THRESHOLD \| Block usage percentage threshold of a keyed file \|<br>\| INFO_TYPE_BLOCK_SIZE \| Block size of a keyed file in kilobytes \|<br>\| INFO_TYPE_CREATION_OPTIONS \| Options specified when the file was created. See **[Appendix E](https://manual.pvxplus.com/pxio-library/library-functions/appendix-references/appendix-e)** for a list of possible options. \|<br>\| INFO_TYPE_KEY_SEQUENCE_COUNT \| Number of key sequences \|<br>\| INFO_TYPE_LOCK_SIZE \| Size of the current record lock in bytes \|<br>\| INFO_TYPE_CREATION_STAMP \| File creation stamp \|<br>\| INFO_TYPE_ATTRIBUTES \| File's extended flags. See **[Appendix G](https://manual.pvxplus.com/pxio-library/library-functions/appendix-references/appendix-g)**. \|<br>\| INFO_TYPE_BUFFER_SIZE \| Size of the file-specific buffer \| |
| **fileInfo** | A pointer to an *int* variable that will receive the requested file information |

## Return Value

If the function succeeds, a value of PXIO_SUCCESS_STATUS is returned; otherwise, an error value is returned. More information on the nature of the error can be found by calling **[PxIOGetError](https://manual.pvxplus.com/pxio-library/library-functions/error-functions/pxiogeterror)**.
