UnZipFile.ReadAsHex
-------------------

Reads the file with given index as data and return hex text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Compression](component_Compression.md) | [3.4](newinversion34.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "UnZipFile.ReadAsHex"; Index ) 

**MBS**( **"UnZipFile.ReadAsHex";** /\* Reads the file with given index as data and return hex text. \*/  
**$Index**) /\* Index of the item from 0 to [UnZipFile.ItemCount](UnZipFileItemCount.md)-1. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | Index of the item from 0 to [UnZipFile.ItemCount](UnZipFileItemCount.md)-1. | $index |

### Result

Returns text value or error.

### Description

Reads the file with given index as data and return hex text.  
If you want to decrypt an encrypted file, please use [UnZipFile.UsePassword](UnZipFileUsePassword.md) before calling this function.  
### See also

- [UnZipFile.ItemCount](UnZipFileItemCount.md)
- [UnZipFile.ReadAsText](UnZipFileReadAsText.md)
- [UnZipFile.UsePassword](UnZipFileUsePassword.md)
- [ZipFile.UsePassword](ZipFileUsePassword.md)

This function checks for a license.

Created 18th August 2014 , last changed 26th February 2015

  
[UnZipFile.ReadAsGIFContainer](UnZipFileReadAsGIFContainer.md) - [UnZipFile.ReadAsJPEGContainer](UnZipFileReadAsJPEGContainer.md)

[HTML Version](UnZipFileReadAsHex.shtml)