---
title: "OutputZipDirectory.GetFile"
url: "https://reference.aspose.com/tex/net/aspose.tex.io/outputzipdirectory/getfile/"
product: "Aspose.TeX for .NET API Reference"
description: "OutputZipDirectory method. Returns the stream to read from"
---

## OutputZipDirectory.GetFile method

Returns the stream to read from.

```csharp
public NamedStream GetFile(string fileName, bool searchSubdirectories = false)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String | The file name. |
| searchSubdirectories | Boolean | Indicates whether to look for a file in subdirectories. |

### Return Value

The named stream.

### See Also

* class [NamedStream](../../namedstream/)
* class [OutputZipDirectory](../)
* namespace [Aspose.TeX.IO](../../outputzipdirectory/)
* assembly [Aspose.TeX](../../../)


