ZLib_ExtractToString

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > ZLIB >

ZLib_ExtractToString

 

Description

 

Extract files from a compressed Zip file to a string buffer

 

Syntax

 

s = ZLib_ExtractToString(sZipFile, FileNameToExtract [, sPassword])

 

Returns

 

String.

 

Parameters

 

Name

Type

Optional

Meaning

sZipFile

String

No

Full path name of the compressed Zip file

FileNameToExtract

String

No

Name of the file to extract from ZIP file archive.

If ZIP archive have subdirectories, add the full path and file name.

 

Example: "Data\MyData.dat"

 
IMPORTANT: do not add initial \ when using internal ZIP path

sPassword

String

Yes

In case zip file is password protected, pass the correct password

 

Remarks

 

Restrictions

 

See also

 

ZLib_List, ZLib_Find, ZLib_Extract,

 

Examples