Table of Contents

TZippyReader.GetFile Method

Overloads

TZippyReader.GetFile(String)

Returns a stream with the contents of file aFileName. You must free this stream once you are done reading, even if the TZippyReader object owns the main stream.

Remarks

You might open more than one stream in parallel from the same file and read from them all at the same time. What you can't do is to read from those streams in different threads without synchronization, since this isn't thread safe.

Syntax

Namespace: FlexCel.Core

public Stream GetFile(String aFileName)

Parameters

<-> Parameter Type Description
aFileName String Name of the file. See description and remarks at FileExists.

Returns

Stream with the file contents. You need to free this stream once you are done reading.

See also

TZippyReader.GetFile(Int32)

Returns the contents of the file at position Index. See GetFile(String) for description and remarks.

Syntax

Namespace: FlexCel.Core

public Stream GetFile(Int32 Index)

Parameters

<-> Parameter Type Description
Index Int32 Index (0 based) of the file. Must be between 0 and FileCount - 1.

Returns

Stream with the file contents. You must free this stream once you are done reading.

See also