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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
ZipFile.WriteText
Writes a text into the zip archive.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Compression | 3.4 | Yes | Yes | No | Yes | Yes |
MBS( "ZipFile.WriteText"; text { ; Encoding } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| text | The text to write. | "Hello World" | |
| Encoding | The text encoding for text parameter. Default is native. 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 "OK" on success.
Description
Writes a text into the zip archive.This is a way to easily add a text file to a zip archive.
Please use ZipFile.CreateFile first to create a new file before writing to it.
In version 5.0 of the plugin, the parameters are changed and we got an extra unused parameter between function name and text. This was corrected in 5.1pr3.
Examples
Creates a text file:
MBS( "ZipFile.CreateFile"; "test.txt"; $date )
MBS( "ZipFile.WriteTextFile"; "Hello World" )
See also
Example Databases
Blog Entries
FileMaker Magazin
Created 18th August 2014, last changed 12nd November 2015
ZipFile.WriteHex - iOSApp.GetDidBecomeActiveEvaluate
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins