UnZipFile.ReadAsFileContainer
-----------------------------

Reads the file with given index as container value with data.

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

MBS( "UnZipFile.ReadAsFileContainer"; Index ) 

**MBS**( **"UnZipFile.ReadAsFileContainer";** /\* Reads the file with given index as container value with data. \*/  
**$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 container value or error.

### Description

Reads the file with given index as container value with data.  
If you want to decrypt an encrypted file, please use [UnZipFile.UsePassword](UnZipFileUsePassword.md) before calling this function.  
### Examples

Read file:

 $r = MBS ( "UnZipFile.ReadAsFileContainer"; $Index )  
### See also

- [UnZipFile.ItemCount](UnZipFileItemCount.md)
- [UnZipFile.ReadAsGIFContainer](UnZipFileReadAsGIFContainer.md)
- [UnZipFile.ReadAsJPEGContainer](UnZipFileReadAsJPEGContainer.md)
- [UnZipFile.ReadAsPNGContainer](UnZipFileReadAsPNGContainer.md)
- [UnZipFile.UsePassword](UnZipFileUsePassword.md)
- [ZipFile.UsePassword](ZipFileUsePassword.md)

### FileMaker Magazin

- [Ausgabe 6/2013, Seite 32](https://filemaker-magazin.de/neuigkeit/3712-Appetithappen-FMM_201306)

This function checks for a license.

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

  
[UnZipFile.OpenFile](UnZipFileOpenFile.md) - [UnZipFile.ReadAsGIFContainer](UnZipFileReadAsGIFContainer.md)

[HTML Version](UnZipFileReadAsFileContainer.shtml)