Table of Contents

TZippyWriter.AddFile Method

Adds an existing file to the zip file.

Syntax

Namespace: FlexCel.Core

public void AddFile(String aNameOnDisk, String aNameOnZip, DateTime aFileDateTime, TCompressionMode CompressionMode)

Parameters

<-> Parameter Type Description
aNameOnDisk String File on the disk that you want to add to the zip file.
aNameOnZip String FileName for the new file inside the zip file. For information and remarks about it, see TZippyReader.GetFileName
aFileDateTime DateTime Date and time for the file that will be created inside the zip file.
CompressionMode TCompressionMode How the file will be stored. We support deflated and stored modes.
You can use stored to store files that are already compressed (like a png image), and deflated for the rest.

See also