Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

UnZipFile.ReadAsText

Reads the file with given index as text.

Component Version macOS Windows Linux Server iOS SDK
Compression 3.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "UnZipFile.ReadAsText"; Index { ; Encoding } )   More

Parameters

Parameter Description Example Flags
Index Index of the item from 0 to UnZipFile.ItemCount-1. $index
Encoding The text encoding for result.
Default is native. This function can also handle UTF-16 as well as UTF-16LE and UTF-16BE for little/big endian byte order.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.
"UTF8" Optional

Result

Returns text value or error.

Description

Reads the file with given index as text.
If you want to decrypt an encrypted file, please use UnZipFile.UsePassword before calling this function.

Examples

Read text in variable:

$text = MBS( "UnZipFile.ReadAsText"; $Index )

See also

Example Databases

FileMaker Magazin

Created 18th August 2014, last changed 12nd November 2015


UnZipFile.ReadAsPNGContainer - UnZipFile.ReadToFile

Feedback: Report problem or ask question.