## IInputWorkingDirectory::GetFile method


Returns the stream to read from. MUST NOT return a null object. In case a stream cannot be returned, it MUST return a [NamedStream](../../namedstream/) object with a null Stream property value instead.

```cpp
virtual System::SharedPtr<Aspose::TeX::IO::NamedStream> Aspose::TeX::IO::IInputWorkingDirectory::GetFile(const System::String &fileName, bool searchSubdirectories=false)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| fileName | const System::String\& | The file name. |
| searchSubdirectories | bool | Indicates whether to look for a file in subdirectories. |

### ReturnValue

The named stream.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [NamedStream](../../namedstream/)
* Class [String](../../../system/string/)
* Class [IInputWorkingDirectory](../)
* Namespace [Aspose::TeX::IO](../../)
* Library [Aspose.TeX for C++](../../../)
