# C-Library File IO Routines

> Source: https://manual.pvxplus.com/c-library-file-io-routines/introduction

The PxPlus C-Library interface enables PxPlus Keyed, Indexed and EFF files to be accessed by programs written in 'C' and other programming languages. It consists of the following file IO functions:

| **Function** | **Description** |
| --- | --- |
| **[PVGetEnvMode( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/getenvmode)** | Get Environment Variables |
| **[PVK_AllocEnv( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/allocenv)** | Allocate Environment |
| **[PVK_close( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/close)** | File Close |
| **[PVK_DeAllocEnv( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/deallocenv)** | De-allocate Environment |
| **[PVK_deffh( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/deffh)** | Pointer to Internal Structure Block |
| **[PVK_dict( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/dict)** | Read Dictionary |
| **[PVK_geterrno( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/geterrno)** | Return Last Error Status |
| **[PVK_getpos( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/getpos)** | Get Address/Position Within File |
| **[PVK_insert( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/insert)** | Write a New Record |
| **[PVK_OpenExt( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/openext)** | Extended File Open |
| **[PVK_read( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/read)** | Read a Record from a File |
| **[PVK_RegisterKey( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/registerkey)** | Register Usage of Library |
| **[PVK_remove( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/remove)** | Remove a Record |
| **[PVK_seek( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/seek)** | Position Within Keyed/Indexed File |
| **[PVK_setpos( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/setpos)** | Set Address/Position of File |
| **[PVK_strerr( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/strerr)** | Return Last Error Message |
| **[PVK_update( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/update)** | Update an Existing Record |
| **[PVK_write( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/write)** | Write/Rewrite a Record |
| **[PVSetEnvMode( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/setenvmode)** | Set Environment Variables |

In addition to the above functions, two 'C' header files are provided:

|  |  |  |
| --- | --- | --- |
|  | **PVKIO.H** | Contains file structures and function prototypes |
|  | **SYBEX.H** | Contains computer word size definitions and macros |

***Environments Provided***

These functions have been pre-compiled for the 32-bit and 64-bit Windows environment.

## Registration

Use and distribution of this package is prohibited without first obtaining an authorized registration key. A warning message to this effect is presented whenever a file is opened unless the application first invokes the **PVK_RegisterKey( )** function with a valid registration string and registration number.

Distribution of the PXPIO routines is restricted to only those companies that apply for and receive a registration string and number directly from PVX Plus Technologies Ltd.
